C# Class Castle.Core.Logging.TraceLogger

The TraceLogger sends all logging to the System.Diagnostics.TraceSource built into the .net framework.
Logging can be configured in the system.diagnostics configuration section. If logger doesn't find a source name with a full match it will use source names which match the namespace partially. For example you can configure from all castle components by adding a source name with the name "Castle". If no portion of the namespace matches the source named "Default" will be used.
Inheritance: ILogger
Show file Open project: 7digital/Castle.Core Class Usage Examples

Protected Methods

Method Description
Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void

Private Methods

Method Description
CreateChildLogger ( string loggerName ) : ILogger
Initialize ( ) : void
InternalCreateChildLogger ( string loggerName ) : ILogger
IsSourceConfigured ( TraceSource source ) : bool
MapLoggerLevel ( SourceLevels level ) : LoggerLevel
MapSourceLevels ( LoggerLevel level ) : SourceLevels
MapTraceEventType ( LoggerLevel level ) : TraceEventType
ShortenName ( string name ) : string
TraceLogger ( string name ) : System
TraceLogger ( string name, LoggerLevel level ) : System

Method Details

Log() protected method

protected Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void
loggerLevel LoggerLevel
loggerName string
message string
exception System.Exception
return void