C# 클래스 Common.Logging.Simple.DebugOutLogger

상속: Common.Logging.Simple.AbstractSimpleLogger
파일 보기 프로젝트 열기: net-commons/common-logging 1 사용 예제들

공개 메소드들

메소드 설명
DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.

보호된 메소드들

메소드 설명
WriteInternal ( LogLevel level, object message, Exception e ) : void

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.

메소드 상세

DebugOutLogger() 공개 메소드

Creates and initializes a logger that writes messages to System.Diagnostics.Debug.
public DebugOutLogger ( string logName, LogLevel logLevel, bool showLevel, bool showDateTime, bool showLogName, string dateTimeFormat ) : System
logName string The key, usually type key of the calling class, of the logger.
logLevel LogLevel The current logging threshold. Messages received that are beneath this threshold will not be logged.
showLevel bool Include the current log level in the log message.
showDateTime bool Include the current time in the log message.
showLogName bool Include the instance key in the log message.
dateTimeFormat string The date and time format to use in the log message.
리턴 System

WriteInternal() 보호된 메소드

Do the actual logging by constructing the log message using a StringBuilder then sending the output to Debug >> Out" />.
protected WriteInternal ( LogLevel level, object message, Exception e ) : void
level LogLevel The of the message.
message object The log message.
e System.Exception An optional associated with the message.
리턴 void