C# 클래스 NLog.LogEventInfo

Represents the logging event.
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ZeroDate System.DateTime

Private Properties

프로퍼티 타입 설명
AddCachedLayoutValue string
CalcFormattedMessage void
InitEventContext void
IsSafeToDeferFormatting bool
NeedToPreformatMessage bool
TryGetCachedLayoutValue bool

공개 메소드들

메소드 설명
Create ( NLog.LogLevel logLevel, string loggerName, IFormatProvider formatProvider, [ message, object parameters ) : LogEventInfo

Creates the log event.

Create ( NLog.LogLevel logLevel, string loggerName, IFormatProvider formatProvider, object message ) : LogEventInfo

Creates the log event.

Create ( NLog.LogLevel logLevel, string loggerName, [ message ) : LogEventInfo

Creates the log event.

Create ( NLog.LogLevel logLevel, string loggerName, [ message, Exception exception ) : LogEventInfo

Creates the log event.

CreateNullEvent ( ) : LogEventInfo

Creates the null event.

LogEventInfo ( ) : System

Initializes a new instance of the LogEventInfo class.

LogEventInfo ( NLog.LogLevel level, string loggerName, IFormatProvider formatProvider, [ message, object parameters ) : System

Initializes a new instance of the LogEventInfo class.

LogEventInfo ( NLog.LogLevel level, string loggerName, IFormatProvider formatProvider, [ message, object parameters, Exception exception ) : System

Initializes a new instance of the LogEventInfo class.

LogEventInfo ( NLog.LogLevel level, string loggerName, [ message ) : System

Initializes a new instance of the LogEventInfo class.

SetStackTrace ( Windows.Adapters.StackTrace stackTrace, int userStackFrame ) : void

Sets the stack trace for the event info.

ToString ( ) : string

Returns a string representation of this log event.

WithContinuation ( AsyncContinuation asyncContinuation ) : NLog.Common.AsyncLogEventInfo

Creates AsyncLogEventInfo from this LogEventInfo by attaching the specified asynchronous continuation.

비공개 메소드들

메소드 설명
AddCachedLayoutValue ( Layout layout, string value ) : string
CalcFormattedMessage ( ) : void
InitEventContext ( ) : void
IsSafeToDeferFormatting ( object value ) : bool
NeedToPreformatMessage ( object parameters ) : bool
TryGetCachedLayoutValue ( Layout layout, string &value ) : bool

메소드 상세

Create() 공개 정적인 메소드

Creates the log event.
public static Create ( NLog.LogLevel logLevel, string loggerName, IFormatProvider formatProvider, [ message, object parameters ) : LogEventInfo
logLevel NLog.LogLevel The log level.
loggerName string Name of the logger.
formatProvider IFormatProvider The format provider.
message [ The message.
parameters object The parameters.
리턴 LogEventInfo

Create() 공개 정적인 메소드

Creates the log event.
public static Create ( NLog.LogLevel logLevel, string loggerName, IFormatProvider formatProvider, object message ) : LogEventInfo
logLevel NLog.LogLevel The log level.
loggerName string Name of the logger.
formatProvider IFormatProvider The format provider.
message object The message.
리턴 LogEventInfo

Create() 공개 정적인 메소드

Creates the log event.
public static Create ( NLog.LogLevel logLevel, string loggerName, [ message ) : LogEventInfo
logLevel NLog.LogLevel The log level.
loggerName string Name of the logger.
message [ The message.
리턴 LogEventInfo

Create() 공개 정적인 메소드

Creates the log event.
public static Create ( NLog.LogLevel logLevel, string loggerName, [ message, Exception exception ) : LogEventInfo
logLevel NLog.LogLevel The log level.
loggerName string Name of the logger.
message [ The message.
exception System.Exception The exception.
리턴 LogEventInfo

CreateNullEvent() 공개 정적인 메소드

Creates the null event.
public static CreateNullEvent ( ) : LogEventInfo
리턴 LogEventInfo

LogEventInfo() 공개 메소드

Initializes a new instance of the LogEventInfo class.
public LogEventInfo ( ) : System
리턴 System

LogEventInfo() 공개 메소드

Initializes a new instance of the LogEventInfo class.
public LogEventInfo ( NLog.LogLevel level, string loggerName, IFormatProvider formatProvider, [ message, object parameters ) : System
level NLog.LogLevel Log level.
loggerName string Logger name.
formatProvider IFormatProvider An IFormatProvider that supplies culture-specific formatting information.
message [ Log message including parameter placeholders.
parameters object Parameter array.
리턴 System

LogEventInfo() 공개 메소드

Initializes a new instance of the LogEventInfo class.
public LogEventInfo ( NLog.LogLevel level, string loggerName, IFormatProvider formatProvider, [ message, object parameters, Exception exception ) : System
level NLog.LogLevel Log level.
loggerName string Logger name.
formatProvider IFormatProvider An IFormatProvider that supplies culture-specific formatting information.
message [ Log message including parameter placeholders.
parameters object Parameter array.
exception System.Exception Exception information.
리턴 System

LogEventInfo() 공개 메소드

Initializes a new instance of the LogEventInfo class.
public LogEventInfo ( NLog.LogLevel level, string loggerName, [ message ) : System
level NLog.LogLevel Log level.
loggerName string Logger name.
message [ Log message including parameter placeholders.
리턴 System

SetStackTrace() 공개 메소드

Sets the stack trace for the event info.
public SetStackTrace ( Windows.Adapters.StackTrace stackTrace, int userStackFrame ) : void
stackTrace Windows.Adapters.StackTrace The stack trace.
userStackFrame int Index of the first user stack frame within the stack trace.
리턴 void

ToString() 공개 메소드

Returns a string representation of this log event.
public ToString ( ) : string
리턴 string

WithContinuation() 공개 메소드

Creates AsyncLogEventInfo from this LogEventInfo by attaching the specified asynchronous continuation.
public WithContinuation ( AsyncContinuation asyncContinuation ) : NLog.Common.AsyncLogEventInfo
asyncContinuation AsyncContinuation The asynchronous continuation.
리턴 NLog.Common.AsyncLogEventInfo

프로퍼티 상세

ZeroDate 공개적으로 정적으로 프로퍼티

Gets the date of the first log event created.
public static DateTime,System ZeroDate
리턴 System.DateTime