Hi Nir,

Define a new own logger Factory and implement a class that extends the Logger class, 
overwritten the methods defined there. Then you can define new methods or change the 
available ones (info, debug,...). See examples in directory:

/log4j_home/examples/subclass/MyLogger.java
                                        MyLoggerFactory.java
                                        MyLoggerTest.java

This code is available at least with the version 1.2 beta 4 and its very helpful

-----Original Message-----
From: ext Nir Sharony [mailto:[EMAIL PROTECTED]]
Sent: 21. April 2002 12:22
To: [EMAIL PROTECTED]
Subject: question about logger levels



Hello

I want to write an application that uses Log4J as its main logging too, but my 
applications needs to support more than the default 5 log levels (FATAL, ERROR, WARN, 
INFO, DEBUG).

What is the easiest way (if one is possible), to do that ?

Sincerely

Nir



---------------------------------
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to