ApplicationName | Gets or sets the application name to use |
BaseTableName | Gets or sets the table to use; default is time-based |
BatchSize |
Gets or sets the number of log events that should be processed in a batch
by the lazy writer thread.
(Inherited from AsyncTaskTarget) |
Configuration | Gets or sets a IConfiguration provider |
ContextProperties |
Gets the array of custom attributes to be passed into the logevent context
(Inherited from TargetWithContext) |
ExcludeProperties |
List of property names to exclude when IncludeEventProperties is true
(Inherited from TargetWithContext) |
ForceLockingQueue |
Gets or sets whether to use the locking queue, instead of a lock-free concurrent queue
The locking queue is less concurrent when many logger threads, but reduces memory allocation
(Inherited from AsyncTaskTarget) |
IncludeCallSite |
Gets or sets a value indicating whether to include call site (class and method name) in the LogEventInfo (Inherited from TargetWithContext) |
IncludeCallSiteStackTrace |
Gets or sets a value indicating whether to include source info (file name and line number) in the LogEventInfo (Inherited from TargetWithContext) |
IncludeEventProperties |
Gets or sets the option to include all properties from the log events
(Inherited from TargetWithContext) |
IncludeGdc |
Gets or sets a value indicating whether to include contents of the GlobalDiagnosticsContext dictionary
(Inherited from TargetWithContext) |
IncludeMdc |
Obsolete and replaced by IncludeScopeProperties with NLog v5.
Gets or sets whether to include the contents of the MappedDiagnosticsContext-dictionary.
(Inherited from TargetWithContext) Obsolete. |
IncludeMdlc |
Obsolete and replaced by IncludeScopeProperties with NLog v5.
Gets or sets whether to include the contents of the MappedDiagnosticsLogicalContext-properties.
(Inherited from TargetWithContext) Obsolete. |
IncludeNdc |
Obsolete and replaced by IncludeScopeNested with NLog v5.
Gets or sets whether to include the contents of the NestedDiagnosticsContext-stack.
(Inherited from TargetWithContext) Obsolete. |
IncludeNdlc |
Obsolete and replaced by IncludeScopeNested with NLog v5.
Gets or sets whether to include the contents of the NestedDiagnosticsLogicalContext-stack.
(Inherited from TargetWithContext) Obsolete. |
IncludeScopeNested |
Gets or sets whether to include the contents of the ScopeContext nested-state-stack.
(Inherited from TargetWithContext) |
IncludeScopeProperties |
Gets or sets whether to include the contents of the ScopeContext properties-dictionary.
(Inherited from TargetWithContext) |
IsInitialized |
Gets a value indicating whether the target has been initialized.
(Inherited from Target) |
Layout | (Inherited from TargetWithContext) |
LayoutWithLock |
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) Obsolete. |
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 |
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) Obsolete. |
OverflowAction |
Gets or sets the action to be taken when the lazy writer thread request queue count
exceeds the set limit.
(Inherited from AsyncTaskTarget) |
QueueLimit |
Gets or sets the limit on the number of requests in the lazy writer thread request queue.
(Inherited from AsyncTaskTarget) |
RetryCount |
How many attempts to retry the same Task, before it is aborted
(Inherited from AsyncTaskTarget) |
RetryDelayMilliseconds |
How many milliseconds to wait before next retry (will double with each retry)
(Inherited from AsyncTaskTarget) |
Source | Gets or sets the subject of the message |
SyncRoot |
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target) |
TaskDelayMilliseconds |
How many milliseconds to delay the actual write operation to optimize for batching
(Inherited from AsyncTaskTarget) |
TaskScheduler |
Task Scheduler used for processing async Tasks
(Inherited from AsyncTaskTarget) |
TaskTimeoutSeconds |
How many seconds a Task is allowed to run before it is cancelled.
(Inherited from AsyncTaskTarget) |