Assembly: LoggingDCF33Style (in LoggingDCF33Style.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
public class Program
Thetype exposes the following members.
Initializes a new instance of theclass
Main entry point for LoggingDCF33Style.
This example also demonstrates programmatic configuration of the log adapter defined in the DCF33StyleNLogAdapter class. The example instantiates a colored console and logs several messages to it using a variety of techniques to demonstrate logging levels and debug flags.
See the SessonLogging example for a demonstration of session logging capabilities.
Loggers in the DCF library that are associated with Inputs and Outputs are passed aobject that implements the interface. When a is created, the and the (for Debug messages) are consulted early by the Logger to see if the LogEvent should be passed to the .
Logger method calls get their ILogSettings in one of three ways:
- Passed as a non-null parameter to the logging message invocation.
- Acquired from thread local storage using .
- From the object.
This example demonstrates each of these facilities.