Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between ALL & DEBUG trace levels in LOG4NET

Tags:

log4net

I would like to know why do we have All and Debug trace levels in log4net? they seems to be doing the same thing.

like image 939
Scorp Avatar asked Mar 15 '12 05:03

Scorp


People also ask

What's the difference between all and all of?

Use all of when the next word is a personal or relative pronoun. You can use either all or all of when the next word in the sentence is a noun phrase that begins with a determiner. Use all by itself when the next word in the sentence is a plural noun that refers to an entire class of things or an uncountable noun.

Is there a difference between all and everything?

'All' and 'everything' both suggest generally the same: totality. 'All' suggests the wholeness of something. So we have: 'all the earth' or 'all the notes' or 'all the peaches' and so on. 'All' is nearly always used with a noun, for example:'did you eat all the chocolate rolls?

What is the difference between both and all?

Actually, the term 'both' refers to two options out of the two, while the term 'all' refers to each individual in a group of two or more.

Should I use the after all?

We often use of after all in definite noun phrases (i.e. before the, possessives and demonstratives), but it is not obligatory: All (of) the workers were given a pay-rise at the end of the year. I gave all (of) my old books to my sister when she went to university. What shall we do with all (of) this cardboard?


1 Answers

ALL really means all levels and DEBUG means 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 use ALL to 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.

like image 62
Stefan Egli Avatar answered Jun 13 '23 12:06

Stefan Egli