Click or drag to resize

LogReceiverWebServiceTarget Class

Sends log messages to a NLog Receiver Service (using WCF or Web Services).
Inheritance Hierarchy
SystemObject
  NLog.TargetsTarget
    NLog.TargetsLogReceiverWebServiceTarget

Namespace:  NLog.Targets
Assembly:  NLog.Wcf (in NLog.Wcf.dll) Version: 5.2.1+bb45a7652322449cc5d22f0e8ecf7e119c124ca2
Syntax
public class LogReceiverWebServiceTarget : Target

The LogReceiverWebServiceTarget type exposes the following members.

Constructors
  NameDescription
Public methodLogReceiverWebServiceTarget
Initializes a new instance of the LogReceiverWebServiceTarget class.
Public methodLogReceiverWebServiceTarget(String)
Initializes a new instance of the LogReceiverWebServiceTarget class.
Top
Properties
  NameDescription
Public propertyClientId
Gets or sets the client ID.
Public propertyEndpointAddress
Gets or sets the endpoint address.
Public propertyEndpointConfigurationName
Gets or sets the name of the endpoint configuration in WCF configuration file.
Public propertyIncludeEventProperties
Gets or sets a value indicating whether to include per-event properties in the payload sent to the server.
Protected propertyIsInitialized
Gets a value indicating whether the target has been initialized.
(Inherited from Target.)
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from Target.)
Public propertyName
Gets or sets the name of the target.
(Inherited from Target.)
Public propertyParameters
Gets the list of parameters.
Protected propertySyncRoot
Gets the object which can be used to synchronize asynchronous operations that must rely on the .
(Inherited from Target.)
Public propertyUseBinaryEncoding
Gets or sets a value indicating whether to use binary message encoding.
Public propertyUseOneWayContract
Gets or sets a value indicating whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply)
Top
Methods
  NameDescription
Protected methodCloseTarget
Closes the target to release any initialized resources
(Inherited from Target.)
Protected methodCreateLogReceiver
Creating a new instance of IWcfLogReceiverClient Inheritors can override this method and provide their own service configuration - binding and endpoint address
Public methodDispose
Closes the target.
(Inherited from Target.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from Target.)
Public methodFlush
Flush any pending log messages (in case of asynchronous targets).
(Inherited from Target.)
Protected methodFlushAsync
Flush any pending log messages asynchronously (in case of asynchronous targets).
(Overrides TargetFlushAsync(AsyncContinuation).)
Protected methodInitializeTarget
Initializes the target before writing starts
(Inherited from Target.)
Protected methodOnSend
Called when log events are being sent (test hook).
Public methodPrecalculateVolatileLayouts
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.)
Protected methodRenderLogEvent(Layout, LogEventInfo)
Renders the logevent into a string-result using the provided layout
(Inherited from Target.)
Protected methodRenderLogEventT(LayoutT, LogEventInfo, T)
Renders the logevent into a result-value by using the provided layout
(Inherited from Target.)
Protected methodResolveServiceT
Resolve from DI ServiceRepository
(Inherited from Target.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Target.)
Protected methodWrite(AsyncLogEventInfo)
Writes async log event to the log target.
(Overrides TargetWrite(AsyncLogEventInfo).)
Protected methodWrite(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.
(Overrides TargetWrite(IListAsyncLogEventInfo).)
Protected methodWrite(LogEventInfo)
Writes logging event to the target destination
(Inherited from Target.)
Public methodWriteAsyncLogEvent
Writes the log to the target.
(Inherited from Target.)
Public methodWriteAsyncLogEvents(AsyncLogEventInfo)
Writes the array of log events.
(Inherited from Target.)
Public methodWriteAsyncLogEvents(IListAsyncLogEventInfo)
Writes the array of log events.
(Inherited from Target.)
Protected methodWriteAsyncThreadSafe(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.)
Protected methodWriteAsyncThreadSafe(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.)
Protected methodWriteFailedNotInitialized
LogEvent is written to target, but target failed to successfully initialize
(Inherited from Target.)
Top
See Also