TblEventLogTargetNLogTarget Class |
Namespace: Omada.OE.AppLogic.Logging
public class NLogTarget : TargetWithLayout
The TblEventLogTargetNLogTarget type exposes the following members.
Name | Description | |
---|---|---|
![]() | TblEventLogTargetNLogTarget |
Constructor
|
Name | Description | |
---|---|---|
![]() | IsInitialized |
Gets a value indicating whether the target has been initialized.
(Inherited from Target.) |
![]() | Layout |
Gets or sets the layout used to format log messages.
(Inherited from TargetWithLayout.) |
![]() | LayoutWithLock | Obsolete.
NLog Layout are by default threadsafe, so multiple threads can be rendering logevents at the same time.
This ensure high concurrency with no lock-congestion for the application-threads, especially when using AsyncTargetWrapper
or AsyncTaskTarget.
But if using custom Layout or LayoutRenderer that are not
threadsafe, then this option can enabled to protect against thread-concurrency-issues. Allowing one
to update to NLog 5.0 without having to fix custom/external layout-dependencies.
(Inherited from Target.) |
![]() | LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Target.) |
![]() | Name |
Gets or sets the name of the target.
(Inherited from Target.) |
![]() | OptimizeBufferReuse | Obsolete.
Target supports reuse of internal buffers, and doesn't have to constantly allocate new buffers
Required for legacy NLog-targets, that expects buffers to remain stable after Write-method exit
(Inherited from Target.) |
![]() | SyncRoot |
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.) |
Name | Description | |
---|---|---|
![]() | CloseTarget |
Closes the target to release any initialized resources
(Inherited from Target.) |
![]() | Dispose |
Closes the target.
(Inherited from Target.) |
![]() | Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources.
(Inherited from Target.) |
![]() | Flush |
Flush any pending log messages (in case of asynchronous targets).
(Inherited from Target.) |
![]() | FlushAsync |
Flush any pending log messages
(Inherited from Target.) |
![]() | InitializeTarget |
Initialize
(Overrides Target.InitializeTarget.) |
![]() | MergeEventProperties | Obsolete.
Merges (copies) the event context properties from any event info object stored in
parameters of the given event info object.
(Inherited from Target.) |
![]() | PrecalculateVolatileLayouts |
Calls the Precalculate(LogEventInfo) on each volatile layout
used by this target.
This method won't prerender if all layouts in this target are thread-agnostic.
(Inherited from Target.) |
![]() | RenderLogEvent(Layout, LogEventInfo) |
Renders the logevent into a string-result using the provided layout
(Inherited from Target.) |
![]() | RenderLogEvent``1(LayoutUMP, LogEventInfo, UMP) |
Renders the logevent into a result-value by using the provided layout
(Inherited from Target.) |
![]() | ResolveService``1 |
Resolve from DI ServiceRepository (Inherited from Target.) |
![]() | ToString | (Inherited from Target.) |
![]() | Write(AsyncLogEventInfo) |
Writes async log event to the log target.
(Inherited from Target.) |
![]() | Write(IListAsyncLogEventInfo) |
Writes an array of logging events to the log target. By default it iterates on all
events and passes them to "Write" method. Inheriting classes can use this method to
optimize batch writes.
(Inherited from Target.) |
![]() | Write(LogEventInfo) |
Write the logs
(Overrides Target.Write(LogEventInfo).) |
![]() | WriteAsyncLogEvent |
Writes the log to the target.
(Inherited from Target.) |
![]() | WriteAsyncLogEvents(AsyncLogEventInfo) |
Writes the array of log events.
(Inherited from Target.) |
![]() | WriteAsyncLogEvents(IListAsyncLogEventInfo) |
Writes the array of log events.
(Inherited from Target.) |
![]() | WriteAsyncThreadSafe(AsyncLogEventInfo) |
Writes a log event to the log target, in a thread safe manner.
Any override of this method has to provide their own synchronization mechanism.
!WARNING! Custom targets should only override this method if able to provide their
own synchronization mechanism. Layout-objects are not guaranteed to be
thread-safe, so using them without a SyncRoot-object can be dangerous.
(Inherited from Target.) |
![]() | WriteAsyncThreadSafe(IListAsyncLogEventInfo) |
Writes an array of logging events to the log target, in a thread safe manner.
Any override of this method has to provide their own synchronization mechanism.
!WARNING! Custom targets should only override this method if able to provide their
own synchronization mechanism. Layout-objects are not guaranteed to be
thread-safe, so using them without a SyncRoot-object can be dangerous.
(Inherited from Target.) |
![]() | WriteFailedNotInitialized |
LogEvent is written to target, but target failed to successfully initialize
(Inherited from Target.) |
Name | Description | |
---|---|---|
![]() | ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) |
![]() | ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) |
![]() | ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |