commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@apache.org>
Subject Re: Commons Logging - FileAppender Issue
Date Fri, 05 Jan 2007 09:31:49 GMT
> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message