I'm using Log4j to manage log, I want to convert this by Commons Logging by
converting just this line :
private static Logger sLogger = Logger.getLogger (LoggingManager.class);
by this one :
private static Log sLogger = LogFactory.getLog(LoggingManager.class);

Regarding the static give this a read

http://wiki.apache.org/jakarta-commons/Logging/StaticLog
This is the only thing to do, right ?
Now I have a problem : logs aren't stored in files anymore.
Why doesn't it store anymore since I replaced this line to use Commons Logging ?
Because you need to configure commons logging to use whatever implementation you want ...assume log4j. See the docs. commons- logging.properties might be what you are after.



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

Reply via email to