You can map the log4j levels as follows and then just use the standard levels.
0: OFF 1: WARN 2: INFO 3: DEBUG (or TRACE) James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ On Mon, Jun 23, 2008 at 3:58 PM, pram <[EMAIL PROTECTED]> wrote: > > Hello all, > > I wrote a java application that processes xml files in a dir, and posts jms > messages in a queue. > > I have the following requirement for logging: > Take logging level as one of the config parameters and do the logging > accordingly. > For example: The log-level can be 0-(no logging), 1-(errors/warnings only), > 2-(1+significant info included, like jms message picked, jms message > processed etc), 3-(2+message text included) > > Can anybody please suggest a good way of achieving this? Should I use the > log4j standard logging levels, or define my own custome levels? > > Thanks, > Pram > > > -- > View this message in context: > http://www.nabble.com/Reg-custome-log-levels-tp18078351p18078351.html > Sent from the Log4j - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
