Thursday, August 06, 2009

log4net – logging levels available

  1. OFF
  2. EMERGENCY
  3. FATAL
  4. ALERT
  5. CRITICAL
  6. SEVERE
  7. ERROR
  8. WARN
  9. NOTICE
  10. INFO
  11. DEBUG
  12. FINE
  13. TRACE
  14. FINER
  15. VERBOSE
  16. FINEST
  17. ALL

Levels lower in the list are considered to have lower precedence than levels that are higher in the list. Thus if you use the threshold filter set to ERROR, then only levels upto (and including ERROR : 1 to 7) will be output. (or DEBUG < INFO < WARN < ERROR < FATAL)

Filters available:

log4net.Filter.DenyAllFilter Drops all logging events.

log4net.Filter.LevelMatchFilter An exact match to the event's level.

log4net.Filter.LevelRangeFilter Matches against a range of levels.

log4net.Filter.LoggerMatchFilter Matches against a the start of the logger name.

log4net.Filter.PropertyFilter Matches a substring from a specific property value.

log4net.Filter.StringMatchFilter Matches a substring from the event's message.

No comments: