Set Root Log Level on command line

2011-05-23 Thread Andy Flury
Hi All Is there a way to set the root log level on the command line? We have an application that runs either in Simulation mode or in Live mode. Depending on the mode, the log level needs to be debug or error. It would be very inconvenient to have two different log4j config files, because a

using of system properties in subject of SMTPAppender

2011-05-23 Thread Zbynek Vavros
Hi, I have a 1 server app and many clients app on different servers. Obviously I wanted to know from which server the email comes, so I used this: log4j.xml and since system property has to

RE: is it possible to have different log level for same package

2011-05-23 Thread Bender Heri
I am not sure about properties configuration. But with xml configuration I would do: - define one logger (your package name, level debug) - assign two appenders to this logger: - appender1: with level range filter error and higher - appender2: without level range filter Heri > -Orig