You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "James A. N. Stauffer" <st...@gmail.com> on 2008/07/01 18:29:58 UTC

Re: Reg custome log levels

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 <pr...@yahoo.com> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org