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
파일 보기 프로젝트 열기: 7digital/Castle.Core 1 사용 예제들

보호된 메소드들

메소드 설명
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