Hi Group,

Please can you tell me how to use the names logger. means :

Usually we use a class name for the logger name, eg:

private static Log logger = LogFactory.getLog(MyClass.class);

but wat if, I want to use a string name instead of the class name , i.e.

private static Log logger = LogFactory.getLog("MY_LOGGER_NAME");

and how to specify the same in the log4J.xml file.

TIA.

Smiles,
Asif

Reply via email to