Watch config file for changes and reload automatically.
Print internal NLog messages to the console. Default value is: false
Print internal NLog messages to the console error output. Default value is: false
Write internal NLog messages to the specified file.
Log level threshold for internal log messages. Default value is: Info.
Global log level threshold for application log messages. Messages below this level won't be logged..
Pass NLog internal exceptions to the application. Default value is: false.
Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes).
Prefix for targets/layout renderers/filters/conditions loaded from this assembly.
Load NLog extensions from the specified file (*.dll)
Load NLog extensions from the specified assembly. Assembly name should be fully qualified.
Name of the logger. May include '*' character which acts like a wildcard. Allowed forms are: *, Name, *Name, Name* and *Name*
Comma separated list of levels that this rule matches.
Minimum level that this rule matches.
Maximum level that this rule matches.
Level that this rule matches.
Comma separated list of target names.
Ignore further rules if this one matches.
Name of the file to be included. The name is relative to the name of the current config file.
Ignore any errors in the include file.
Variable name.
Variable value.
The text to be rendered. Default value is: ${longdate}|${level:uppercase=true}|${logger}|${message}
Header
Footer
Default filter to be applied when no specific rule matches.
Condition to be tested.
Resulting filter to be applied when the condition matches.
Machine name on which Event Log service is running. Default value is: .
Layout that renders event ID.
Layout that renders event Category.
The value to be used as the event Source.
Name of the Event Log to write to. This can be System, Application or any user-defined name. Default value is: Application
Web service URL.
Web service method name.
Web service namespace.
The protocol to be used when calling web service. Default value is: Soap11
The name of the parameter.
The type of the parameter.
The layout that should be use to calcuate the value for the parameter.
Sender's email address (e.g. joe@domain.com)
Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com)
Whether to add new lines between log entries.
Mail subject. Default value is: Message from NLog on ${machinename}
Mail message body (repeated for each log message send in one mail) Default value is: ${message}
Encoding to be used for sending e-mail. Default value is: UTF8
Send message as HTML instead of plain text. Default value is: false
SMTP Server to be used for sending.
SMTP Authentication mode. Default value is: None
The username used to connect to SMTP server (used when SmtpAuthentication is set to "basic").
The password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic").
The port that SMTP Server is listening on. Default value is: 25
Whether performance counter should be automatically created.
Performance counter category.
Name of the performance counter.
Instance name.
Performance counter type.
The class name.
The method name. The method must be public and static.
Name of RichTextBox to which Nlog will log
Name of the Form on which the control is located. If there is no open form of a specified name than NLog will create a new one.
Use default coloring rules Default value is: false
The condition that must be met in order to set the specified font color.
The font color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Default value is: Empty
The background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Background color will be set only in .net 2.0 Default value is: Empty
Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing
The regular expression to be matched. You must specify either text or regex.
The text to be matched. You must specify either text or regex.
Font style of matched text. Possible values are the same as in FontStyle enum in System.Drawing
Match whole words only. Default value is: false
Ignore case when comparing texts. Default value is: false
The font color. Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed Default value is: Empty
The background color. Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed Background color will be set only in .net 2.0 Default value is: Empty
Number of log events to be buffered. Default value is: 100
Flush the contents of buffer if there's no write in the specified period of time (milliseconds). Use -1 to disable timed flushes. Default value is: -1
Include NLog-specific extensions to log4j schema.
The AppInfo field. By default it's the friendly name of the current AppDomain.
Include call site (class and method name) in the information sent over the network.
Include source info (file name and line number) in the information sent over the network.
Include MDC dictionary in the information sent over the network.
Include NDC stack.
The network address. Can be tcp://host:port or udp://host:port
Keep connection open whenever possible. Default value is: true
Append newline at the end of log message. Default value is: false
Maximum message size in bytes. Default value is: 65000
Action that should be taken if the message is larger than maxMessageSize
Encoding Default value is: utf-8
Viewer parameter name.
The layout that should be use to calcuate the value for the parameter.
Number of retries that should be attempted on the wrapped target in case of a failure. Default value is: 3
The time to wait between retries in milliseconds. Default value is: 100
Send the logging messages to the standard error instead of the standard output. Default value is: false
Username to change context to
Password
Windows domain name to change context to. Default value is: .
Logon Type.
Logon Provider.
Impersonation level.
Revert to the credentials of the process instead of impersonating another user. Default value is: false
The name of the file to write to.
Create directories if they don't exist. Default value is: true
The number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger). Default value is: 5
Maximum number of seconds that files are kept open. If this number is negative. Default value is: -1
Delete old log file on startup. Default value is: false
Replace file contents on each write instead of appending log message at the end. Default value is: false
Keep log file open instead of opening and closing it on each logging event. Default value is: false
Enable log file(s) to be deleted. Default value is: true
File attributes (Windows only).
Line ending mode.
Automatically flush the file buffers after each log message. Default value is: true
Log file buffer size in bytes. Default value is: 32768
File encoding.
Enables concurrent writes to the log file by multiple processes on the same host. Default value is: true
Disables open-fi Default value is: false
The number of times the write is appended on the file before NLog discards the log message. Default value is: 10
Automatically archive log files that exceed the specified size in bytes.
Automatically archive log files every time the specified time passes. Possible options are: year, month, day, hour, minute. Files are moved to the archive as part of the write operation if the current period of time changes. For example if the current hour changes from 10 to 11, the first write that will occur on or after 11:00 will trigger the archiving.
The name of the file to be used for an archive. It may contain a special placeholder {#####} that will be replaced with a sequence of numbers depending on the archiving strategy. The number of hash characters used determines the number of numerical digits to be used for numbering files.
The delay in milliseconds to wait before attempting to write to the file again. Default value is: 1
Maximum number of archive files that should be kept. Default value is: 9
Determines the way file archives are numbered.
Name of the queue to write to.
The label to associate with each message. Default value is: NLog
Create the queue if it doesn't exists. Default value is: false
Encoding to be used when writing text to the queue.
Use the XML format when serializing message. Default value is: false
Use recoverable messages (with guaranteed delivery). Default value is: false
Determines whether the error stream (stderr) should be used instead of the output stream (stdout). Default value is: false
Use default row highlighting rules. Default value is: true
The condition that must be met in order to set the specified foreground and background color.
The foreground color. Default value is: NoChange
The background color. Default value is: NoChange
The regular expression to be matched. You must specify either text or regex.
The text to be matched. You must specify either text or regex.
Match whole words only. Default value is: false
Ignore case when comparing texts. Default value is: false
The foreground color. Default value is: NoChange
The background color. Default value is: NoChange
The number of times to repeat each log message. Default value is: 3
Perform layout calculation. Default value is: false
Whether to return to the first target after any successful write.
Condition expression. Log events who meet this condition will be forwarded to the wrapped target.
The name of the database provider. It can be: sqlserver, mssql, microsoft, msde (all for MSSQL database), oledb, odbc or other name in which case it's treated as a fully qualified type name of the data provider *Connection class. Default value is: sqlserver
The connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase.
Keep the database connection open between the log events. Default value is: true
Use database transactions. Some data providers require this. Default value is: false
The database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string.
The database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string.
The database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string.
The database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string.
The text of the SQL command to be run on each log level.
Database parameter name.
The layout that should be use to calcuate the value for the parameter.
Database parameter size. Default value is: 0
Database parameter precision. Default value is: 0
Database parameter scale. Default value is: 0
Add <!-- --> comments around all written texts.
Name of control to which Nlog will log
Setting to tell to append or overwrite the Text property of control
Name of the Form on which the control is located.
The number of log events to be buffered. Default value is: 4000
Grow the buffer when it gets full. Default value is: false
The maximum number of log events that the buffer can keep.
The number of log events that should be processed in a batch by the lazy writer thread. Default value is: 100
The time in milliseconds to sleep between batches. Default value is: 50
The action to be taken when the lazy writer thread request queue count exceeds the set limit. Default value is: Discard
The limit on the number of requests in the lazy writer thread request queue. Default value is: 10000
Message box title.
String to compare the layout to.
Ignore case when comparing strings. Default value is: false
The layout text;
User-requested action to be taken when filter matches.
Ignore case when comparing strings. Default value is: false
String to compare the layout to.
Substring to be matched.
Ignore case when comparing strings. Default value is: false
Ignore case when comparing strings. Default value is: false
Substring to be matched.
The condition expression.
Whether CVS should include header.
Column delimiter. Default value is: Auto
Quoting mode.
Quote Character Default value is: "
Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom')
The name of the column.
The layout that should be written in the column.
The layout text