Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changes between Version 9 and Version 10 of TutLogging

Show
Ignore:
Author:
mandel (IP: 87.139.115.64)
Timestamp:
07/05/08 16:31:19 (16 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TutLogging

    v9 v10  
    4747In 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): 
    4848 
    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 with 
     49'''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 
    5050no arguments enables this level by default. 
    5151