C# 클래스 NLog.Targets.Target

Represents logging target.
상속: ISupportsInitialize, INLogConfigurationItem, IDisposable
파일 보기 프로젝트 열기: shiftkey/winrt-backport-hilarity 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Closes the target.

Flush ( AsyncContinuation asyncContinuation ) : void

Flush any pending log messages (in case of asynchronous targets).

PrecalculateVolatileLayouts ( LogEventInfo logEvent ) : void

Calls the Layout.Precalculate on each volatile layout used by this target.

ToString ( ) : string

Returns a System.String that represents this instance.

WriteAsyncLogEvent ( NLog.Common.AsyncLogEventInfo logEvent ) : void

Writes the log to the target.

WriteAsyncLogEvents ( ) : void

Writes the array of log events.

보호된 메소드들

메소드 설명
CloseTarget ( ) : void

Closes the target and releases any unmanaged resources.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

FlushAsync ( AsyncContinuation asyncContinuation ) : void

Flush any pending log messages asynchronously (in case of asynchronous targets).

InitializeTarget ( ) : void

Initializes the target. Can be used by inheriting classes to initialize logging.

Write ( NLog.Common.AsyncLogEventInfo logEvent ) : void

Writes log event to the log target. Must be overridden in inheriting classes.

Write ( LogEventInfo logEvent ) : void

Writes logging event to the log target. classes.

비공개 메소드들

메소드 설명
Close ( ) : void

Closes this instance.

CreateInitException ( ) : Exception
GetAllLayouts ( ) : void
ISupportsInitialize ( ) : void

Closes this instance.

ISupportsInitialize ( LoggingConfiguration configuration ) : void

Initializes this instance.

Initialize ( LoggingConfiguration configuration ) : void

Initializes this instance.

WriteAsyncLogEvents ( NLog.Common.AsyncLogEventInfo logEventInfos, AsyncContinuation continuation ) : void

메소드 상세

CloseTarget() 보호된 메소드

Closes the target and releases any unmanaged resources.
protected CloseTarget ( ) : void
리턴 void

Dispose() 공개 메소드

Closes the target.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

Flush() 공개 메소드

Flush any pending log messages (in case of asynchronous targets).
public Flush ( AsyncContinuation asyncContinuation ) : void
asyncContinuation AsyncContinuation The asynchronous continuation.
리턴 void

FlushAsync() 보호된 메소드

Flush any pending log messages asynchronously (in case of asynchronous targets).
protected FlushAsync ( AsyncContinuation asyncContinuation ) : void
asyncContinuation AsyncContinuation The asynchronous continuation.
리턴 void

InitializeTarget() 보호된 메소드

Initializes the target. Can be used by inheriting classes to initialize logging.
protected InitializeTarget ( ) : void
리턴 void

PrecalculateVolatileLayouts() 공개 메소드

Calls the Layout.Precalculate on each volatile layout used by this target.
public PrecalculateVolatileLayouts ( LogEventInfo logEvent ) : void
logEvent LogEventInfo /// The log event. ///
리턴 void

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

Write() 보호된 메소드

Writes log event to the log target. Must be overridden in inheriting classes.
protected Write ( NLog.Common.AsyncLogEventInfo logEvent ) : void
logEvent NLog.Common.AsyncLogEventInfo Log event to be written out.
리턴 void

Write() 보호된 메소드

Writes logging event to the log target. classes.
protected Write ( LogEventInfo logEvent ) : void
logEvent LogEventInfo /// Logging event to be written out. ///
리턴 void

WriteAsyncLogEvent() 공개 메소드

Writes the log to the target.
public WriteAsyncLogEvent ( NLog.Common.AsyncLogEventInfo logEvent ) : void
logEvent NLog.Common.AsyncLogEventInfo Log event to write.
리턴 void

WriteAsyncLogEvents() 공개 메소드

Writes the array of log events.
public WriteAsyncLogEvents ( ) : void
리턴 void