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
Debug
Info
Warn
Error
Fatal
Off

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.
If no format is specified DateTime.ToString() will be used.

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