Changes between Version 9 and Version 10 of TutLogging
- Timestamp:
- 07/05/08 16:31:19 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TutLogging
v9 v10 47 47 In order to facilitate run time configuration of different types of Log output, tango.util.log defines 6 levels of logging. Levels define the rules a Logger uses to determine which messages to print and which to ignore. Levels are ranked according to precedence, with the lowest in rank taking precedence over those above it. Following is a list of levels, from the lowest to the highest precedence (highest to lowest rank): 48 48 49 '''Trace''' - this is intended to be used for debug output. Log4J users should be aware that this is the equivalent of that API's DEBUG level. Trace was used in tango.log because 'debug' is a keyword in D. Also, there is no ALL equivalent in tango.log, so Trace is used to enable logging for all levels. Calling setLevel with49 '''Trace''' - this is the default level intended to be used for debug output. Log4J users should be aware that this is the equivalent of that API's DEBUG level. Trace was used in tango.log because 'debug' is a keyword in D. Also, there is no ALL equivalent in tango.log, so Trace is used to enable logging for all levels. Calling setLevel with 50 50 no arguments enables this level by default. 51 51