[This is preliminary documentation and is subject to change.]

Contains implementation of log targets.

Classes

  ClassDescription
AspNetTraceTarget
Writes log messages to the ASP.NET trace.
AspResponseTarget
Outputs log messages through the ASP Response object.
ChainsawTarget
Sends log messages to the remote instance of Chainsaw application from log4j.
ColoredConsoleTarget
Writes log messages to the console with customizable coloring.
ConsoleRowHighlightingRule
The row-highlighting condition.
ConsoleTarget
Writes log messages to the console.
ConsoleWordHighlightingRule
Highlighting rule for Win32 colorful console.
DatabaseCommandInfo
Information about database command + parameters.
DatabaseParameterInfo
Represents a parameter to a Database target.
DatabaseTarget
Writes log messages to the database using an ADO.NET provider.
DebuggerTarget
Writes log messages to the attached managed debugger.
DebugTarget
Mock target - useful for testing.
EventLogTarget
Writes log message to the Event Log.
FileTarget
Writes log messages to one or more files.
FormControlTarget
Logs text to Windows.Forms.Control.Text property control of specified Name.
LogReceiverWebServiceTarget
Sends log messages to a NLog Receiver Service (using WCF or Web Services).
MailTarget
Sends log messages by email using SMTP protocol.
MemoryTarget
Writes log messages to an ArrayList in memory for programmatic retrieval.
MessageBoxTarget
Pops up log messages as message boxes.
MessageQueueTarget
Writes log message to the specified message queue handled by MSMQ.
MethodCallParameter
A parameter to MethodCall.
MethodCallTarget
Calls the specified static method on each log message and passes contextual parameters to it.
MethodCallTargetBase
The base class for all targets which call methods (local or remote). Manages parameters and type coercion.
NetworkTarget
Sends log messages over the network.
NLogViewerParameterInfo
Represents a parameter to a NLogViewer target.
NLogViewerTarget
Sends log messages to the remote instance of NLog Viewer.
NullTarget
Discards log messages. Used mainly for debugging and benchmarking.
OutputDebugStringTarget
Outputs log messages through the OutputDebugString() Win32 API.
PerformanceCounterTarget
Increments specified performance counter on each write.
RichTextBoxRowColoringRule
The row-coloring condition.
RichTextBoxTarget
Log text a Rich Text Box control in an existing or new form.
RichTextBoxWordColoringRule
Highlighting rule for Win32 colorful console.
Target
Represents logging target.
TargetAttribute
Marks class as a logging target and assigns a name to it.
TargetWithLayout
Represents target that supports string formatting using layouts.
TargetWithLayoutHeaderAndFooter
Represents target that supports string formatting using layouts.
TraceTarget
Sends log messages through System.Diagnostics.Trace.
WebServiceTarget
Calls the specified web service on each log message.

Enumerations

  EnumerationDescription
ArchiveNumberingMode
Specifies the way archive numbering is performed.
ConsoleOutputColor
Colored console output color.
FileArchivePeriod
Modes of archiving files based on time.
LineEndingMode
Line ending mode.
NetworkTargetOverflowAction
Action that should be taken if the message overflows.
SmtpAuthenticationMode
SMTP authentication modes.
WebServiceProtocol
Web service protocol.
Win32FileAttributes
Win32 file attributes.