views:

317

answers:

3

Hi

I know its possible to use the built in levels with log4net INFO, WARN, ERROR and FATAL messages

Is it possible to create new ones?

+1  A: 

I stand corrected. It's possible in log4j as well - I've just never done it:

http://www.nabble.com/Logging-custom-level-using-log4j-in-java-to2132907.html

I would not have known unless I'd seen William's response and checked again.

duffymo
+1  A: 

It's quite a few years old now, but this thread discusses what you are looking to do.

William
A: 

I'm using this to implement Verbose and/or Trace levels:

http://stackoverflow.com/questions/2279773/log4net-how-to-log-a-verbose-message/3461437#3461437

Wagner Danda da Silva