I would like to know why do we have All and Debug trace levels in log4net? they seems to be doing the same thing.
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.
'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?
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.
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With