C# Класс 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.
Наследование: ILogger
Показать файл Открыть проект Примеры использования класса

Защищенные методы

Метод Описание
Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void

Приватные методы

Метод Описание
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

Описание методов

Log() защищенный Метод

protected Log ( LoggerLevel loggerLevel, string loggerName, string message, Exception exception ) : void
loggerLevel LoggerLevel
loggerName string
message string
exception System.Exception
Результат void