I would like to know why do we have All and Debug trace levels in log4net? they seems to be doing the same thing.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ALLreally means all levels andDEBUGmeans only Debug or higher. Often this does not make a difference because Debug is the lowest level that the ILog interface exposes. Log4net does however have a lot more log levels and if you build a wrapper that supports additional levels you may prefer to useALLto make sure you really get all messages.EDIT:
DEBUG or higher means the following levels if you are using only standard levels: DEBUG, INFO, WARN, ERROR, FATAL
Assuming you would in addition use a VERBOSE level then you would only see it in your log file if you use ALL or VERBOSE in the configuration. Using DEBUG would filter all VERBOSE messages. Log4net knows the following levels that are lower then DEBUG: FINE, TRACE, FINER, VERBOSE, FINEST.