Adapters available in Common.Logging in .NET
All standard FactoryAdapters provided by the Common.Logging library accept the following optional configuration properties (use <arg> for declarative configuration):
| Key | Possible Value(s) | Description |
| level | All | Defines the global maximum level of logging. |
| showDateTime | true|false | output timestamp? |
| showLogName | true|false | output logger name? |
| dateTimeFormat | any formatstring accepted by DateTime.ToString() | defines the format to be used for output the timestamp. |
NoOpLoggerFactoryAdapter
This is the default FactoryAdapter if logging is not configured. It simply does nothing.
ConsoleOutLoggerFactoryAdapter
ConsoleOutLoggerFactoryAdapter uses Console.Out for logging output.
TraceLoggerFactoryAdapter
TraceLoggerFactoryAdapter uses System.Diagnostics.Trace for logging output.
Posted in: programming | Tags: c# spring adapters common.logging showdatetime showlogname datetimeformat nooploggerfactoryadapter consoleoutloggerfactoryadapter traceloggerfactoryadapter traceloggerfactoryadapter