Abramson, Rami wrote:

1> We do not have a different logger name for each class.

2> Regarding: "You could reach it with grep / awk / sed on the log file ;)"
We would like to filter during logging and not post-logging.

Log4j has two main criteria built in for filtering output:
1. logger names (former category names)
2. levels

In your case - your don't need a different logger for each class. You need a logger for each package - or just one logger for package P.
This would be the "standard" solution.


There is an alternative, which uses the location info of the logger calls (log.debug ...). But it's not recommended since it's slow. See documentation for parameter l in class PatternLayout.

Ingo




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to