On Mon, Nov 18, 2002 at 02:02:37PM -0500, Gao, Yu Li wrote: > Hi, > > When we use Log4j we can add appender and set log level to logger by: > > org.apache.log4j.Logger logger; > org.apache.log4j.AsyncAppender asyAppender; > ... > logger.addAppender(asyAppender); > logger.setLevel(logLevel); > ... > > We look at org.apache.commons.logging.Log api and documents but could not > find the similar api for these functionalities. Could someone help us > to do this if we use org.apache.commons.logging.Log? >
Currently, commons-logging has the ability to log messages, but not to modify configuration. Adding an appender and setting a log level are two examples of configuration. If you are using Log4j underneath commons-logging, then use the specific log4j calls to do what you want, and commons-logging will happily comply. -- Scott Sanders - [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
