logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WJCarpenter <bill-lo...@carpenter.org>
Subject Re: Can we define multiple Logger instance in a single class file?
Date Sun, 23 Nov 2008 18:20:19 GMT

> If it is possible then what will be the value for "?". Logger myLogger =
> Logger.getLogger("?"); in java file.
> and for referring the same Logger instance in log4j.properties file, how we
> will be defining the Appender.
>   

You can call your loggers whatever you want.  Naming them after fully 
qualified class names is just a convention (and, a convention that time 
has shown is often not that great an idea if your logging is exposed to 
end users who have no idea about the internal organization of your code).


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message