diff --git a/NzbDrone.Core.Test/Fixtures.cs b/NzbDrone.Core.Test/Fixtures.cs index 74bca0b8a..ec26a1b81 100644 --- a/NzbDrone.Core.Test/Fixtures.cs +++ b/NzbDrone.Core.Test/Fixtures.cs @@ -23,5 +23,11 @@ namespace NzbDrone.Core.Test } } + + [SetUp] + public void Setup() + { + Main.ConfigureNlog(); + } } } \ No newline at end of file diff --git a/NzbDrone.Core.Test/SeriesTest.cs b/NzbDrone.Core.Test/SeriesTest.cs index a9117f939..1815bc773 100644 --- a/NzbDrone.Core.Test/SeriesTest.cs +++ b/NzbDrone.Core.Test/SeriesTest.cs @@ -68,8 +68,47 @@ namespace NzbDrone.Core.Test moqData.Verify(c => c.Add(It.IsAny()), Times.Once()); } + [Test] + [Row(0)] + [Row(1)] + [Row(2)] + [Row(3)] + public void register_series_with_match(int matchPosition) + { + TvdbSeries fakeSeries = Builder.CreateNew().With(f => f.SeriesName = "The Simpsons").Build(); + var fakeSearch = Builder.CreateListOfSize(4).Build(); + fakeSearch[matchPosition].Id = fakeSeries.Id; + fakeSearch[matchPosition].SeriesName = fakeSeries.SeriesName; + + + //Arrange + var moqData = new Mock(); + var moqTvdb = new Mock(); + + moqData.Setup(f => f.Exists(c => c.TvdbId == It.IsAny())).Returns(false); + moqTvdb.Setup(f => f.SearchSeries(It.IsAny())).Returns(fakeSearch); + moqTvdb.Setup(f => f.GetSeries(fakeSeries.Id, It.IsAny())).Returns(fakeSeries); + + var kernel = new MockingKernel(); + kernel.Bind().ToConstant(moqData.Object); + kernel.Bind().ToConstant(moqTvdb.Object); + kernel.Bind().To(); + + + //Act + var seriesController = kernel.Get(); + seriesController.RegisterSeries(@"D:\TV Shows\The Simpsons"); + + //Assert + //Verify that the show was added to the database only once. + moqData.Verify(c => c.Add(It.Is(d => d.TvdbId == fakeSeries.Id)), Times.Once()); + } + + + + [Test] [Description("This test confirms that the tvdb id stored in the db is preserved rather than being replaced by an auto incrementing value")] public void tvdbid_is_preserved([RandomNumbers(Minimum = 100, Maximum = 999, Count = 1)] int tvdbId) { @@ -86,5 +125,26 @@ namespace NzbDrone.Core.Test Assert.IsNotEmpty(allSeries); Assert.AreEqual(tvdbId, allSeries.First().TvdbId); } + + [Test] + [Row(new object[] { "CAPITAL", "capital", true })] + [Row(new object[] { "Something!!", "Something", true })] + [Row(new object[] { "Simpsons 2000", "Simpsons", true })] + [Row(new object[] { "Simp222sons", "Simpsons", true })] + [Row(new object[] { "Simpsons", "The Simpsons", true })] + [Row(new object[] { "Law and order", "Law & order", true })] + [Row(new object[] { "xxAndxx", "xxxx", false })] + [Row(new object[] { "Andxx", "xx", false })] + [Row(new object[] { "xxAnd", "xx", false })] + [Row(new object[] { "Thexx", "xx", false })] + [Row(new object[] { "Thexx", "xx", false })] + [Row(new object[] { "xxThexx", "xxxxx", false })] + [Row(new object[] { "Simpsons The", "Simpsons", true })] + public void Name_match_test(string a, string b, bool match) + { + bool result = SeriesProvider.IsTitleMatch(a, b); + + Assert.AreEqual(match, result, "{0} , {1}", a, b); + } } } diff --git a/NzbDrone.Core/Libraries/NLog.Extended.dll b/NzbDrone.Core/Libraries/NLog.Extended.dll new file mode 100644 index 000000000..762a6a992 Binary files /dev/null and b/NzbDrone.Core/Libraries/NLog.Extended.dll differ diff --git a/NzbDrone.Core/Libraries/NLog.Extended.xml b/NzbDrone.Core/Libraries/NLog.Extended.xml new file mode 100644 index 000000000..3838cfbe7 --- /dev/null +++ b/NzbDrone.Core/Libraries/NLog.Extended.xml @@ -0,0 +1,432 @@ + + + + NLog.Extended + + + + + ASP.NET Application variable. + + + Use this layout renderer to insert the value of the specified variable stored + in the ASP.NET Application dictionary. + + + You can set the value of an ASP.NET Application variable by using the following code: + + + + Example usage of ${aspnet-application}: + + ${aspnet-application:variable=myvariable} - produces "123" + ${aspnet-application:variable=anothervariable} - produces "01/01/2006 00:00:00" + ${aspnet-application:variable=anothervariable:culture=pl-PL} - produces "2006-01-01 00:00:00" + ${aspnet-application:variable=myvariable:padding=5} - produces " 123" + ${aspnet-application:variable=myvariable:padding=-5} - produces "123 " + ${aspnet-application:variable=stringvariable:upperCase=true} - produces "AAA BBB" + + + + + + Renders the specified ASP.NET Application variable and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the variable name. + + + + + + ASP.NET Request variable. + + + Use this layout renderer to insert the value of the specified parameter of the + ASP.NET Request object. + + + Example usage of ${aspnet-request}: + + ${aspnet-request:item=v} + ${aspnet-request:querystring=v} + ${aspnet-request:form=v} + ${aspnet-request:cookie=v} + ${aspnet-request:serverVariable=v} + + + + + + Renders the specified ASP.NET Request variable and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the item name. The QueryString, Form, Cookies, or ServerVariables collection variables having the specified name are rendered. + + + + + + Gets or sets the QueryString variable to be rendered. + + + + + + Gets or sets the form variable to be rendered. + + + + + + Gets or sets the cookie to be rendered. + + + + + + Gets or sets the ServerVariables item to be rendered. + + + + + + ASP.NET Session ID. + + + + + Renders the ASP.NET Session ID appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + ASP.NET Session variable. + + + Use this layout renderer to insert the value of the specified variable stored + in the ASP.NET Session dictionary. + + + You can set the value of an ASP.NET Session variable by using the following code: + + + + Example usage of ${aspnet-session}: + + ${aspnet-session:variable=myvariable} - produces "123" + ${aspnet-session:variable=anothervariable} - produces "01/01/2006 00:00:00" + ${aspnet-session:variable=anothervariable:culture=pl-PL} - produces "2006-01-01 00:00:00" + ${aspnet-session:variable=myvariable:padding=5} - produces " 123" + ${aspnet-session:variable=myvariable:padding=-5} - produces "123 " + ${aspnet-session:variable=stringvariable:upperCase=true} - produces "AAA BBB" + + + + + + Renders the specified ASP.NET Session value and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the session variable name. + + + + + + ASP.NET User variable. + + + + + Renders the specified ASP.NET User.Identity.AuthenticationType variable and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + ASP.NET User variable. + + + + + Renders the specified ASP.NET User.Identity.Name variable and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Writes log messages to the ASP.NET trace. + + Documentation on NLog Wiki + + Log entries can then be viewed by navigating to http://server/path/Trace.axd. + + + + + Writes the specified logging event to the ASP.NET Trace facility. + If the log level is greater than or equal to it uses the + method, otherwise it uses + method. + + The logging event. + + + + Writes log message to the specified message queue handled by MSMQ. + + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ You can use a single target to write to multiple queues (similar to writing to multiple files with the File target). +

+ +

+ The above examples assume just one target and a single rule. + More configuration options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
+
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Writes the specified logging event to a queue specified in the Queue + parameter. + + The logging event. + + + + Prepares a message to be sent to the message queue. + + The log event to be used when calculating label and text to be written. + The message to be sent. + + You may override this method in inheriting classes + to provide services like encryption or message + authentication. + + + + + Gets or sets the name of the queue to write to. + + + To write to a private queue on a local machine use .\private$\QueueName. + For other available queue names, consult MSMQ documentation. + + + + + + Gets or sets the label to associate with each message. + + + By default no label is associated. + + + + + + Gets or sets a value indicating whether to create the queue if it doesn't exists. + + + + + + Gets or sets a value indicating whether to use recoverable messages (with guaranteed delivery). + + + + + + Gets or sets the encoding to be used when writing text to the queue. + + + + + + Gets or sets a value indicating whether to use the XML format when serializing message. + + + + + + Buffers log events for the duration of ASP.NET request and sends them down + to the wrapped target at the end of a request. + + Documentation on NLog Wiki + +

+ Typically this target is used in cooperation with PostFilteringTargetWrapper + to provide verbose logging for failing requests and normal or no logging for + successful requests. We need to make the decision of the final filtering rule + to apply after all logs for a page have been generated. +

+

+ To use this target, you need to add an entry in the httpModules section of + web.config: +

+ + + + + + + + + + ]]> + +
+ +

To set up the ASP.NET Buffering target wrapper configuration file, put + the following in web.nlog file in your web application directory (this assumes + that PostFilteringWrapper is used to provide the filtering and actual logs go to + a file). +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To configure the target programmatically, put the following + piece of code in your Application_OnStart() handler in Global.asax.cs + or some other place that gets executed at the very beginning of your code: +

+ +

+ Fully working C# project can be found in the Examples/Targets/Configuration API/ASPNetBufferingWrapper + directory along with usage instructions. +

+
+
+ + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The wrapped target. + + + + Initializes a new instance of the class. + + The wrapped target. + Size of the buffer. + + + + Initializes the target by hooking up the NLogHttpModule BeginRequest and EndRequest events. + + + + + Closes the target by flushing pending events in the buffer (if any). + + + + + Adds the specified log event to the buffer. + + The log event. + + + + Gets or sets the number of log events to be buffered. + + + + + + Gets or sets a value indicating whether buffer should grow as needed. + + A value of true if buffer should grow as needed; otherwise, false. + + Value of true causes the buffer to expand until is hit, + false causes the buffer to never expand and lose the earliest entries in case of overflow. + + + + + + Gets or sets the maximum number of log events that the buffer can keep. + + + + + + ASP.NET HttpModule that enables NLog to hook BeginRequest and EndRequest events easily. + + + + + Initializes the HttpModule. + + + ASP.NET application. + + + + + Disposes the module. + + + + + Event to be raised at the end of each HTTP Request. + + + + + Event to be raised at the beginning of each HTTP Request. + + +
+
diff --git a/NzbDrone.Core/Libraries/NLog.dll b/NzbDrone.Core/Libraries/NLog.dll index cd8e7d651..8a27b27f3 100644 Binary files a/NzbDrone.Core/Libraries/NLog.dll and b/NzbDrone.Core/Libraries/NLog.dll differ diff --git a/NzbDrone.Core/Libraries/NLog.pdb b/NzbDrone.Core/Libraries/NLog.pdb index ebfc192d5..a9996beef 100644 Binary files a/NzbDrone.Core/Libraries/NLog.pdb and b/NzbDrone.Core/Libraries/NLog.pdb differ diff --git a/NzbDrone.Core/Libraries/NLog.xml b/NzbDrone.Core/Libraries/NLog.xml index 4f7c291c9..cd0c12c15 100644 --- a/NzbDrone.Core/Libraries/NLog.xml +++ b/NzbDrone.Core/Libraries/NLog.xml @@ -4,6 +4,266 @@ NLog + + + NLog COM Interop logger implementation. + + + + + NLog COM Interop logger interface. + + + + + Writes the diagnostic message at the specified level. + + The log level. + A to be written. + + + + Writes the diagnostic message at the Trace level. + + A to be written. + + + + Writes the diagnostic message at the Debug level. + + A to be written. + + + + Writes the diagnostic message at the Info level. + + A to be written. + + + + Writes the diagnostic message at the Warn level. + + A to be written. + + + + Writes the diagnostic message at the Error level. + + A to be written. + + + + Writes the diagnostic message at the Fatal level. + + A to be written. + + + + Checks if the specified log level is enabled. + + The log level. + A value indicating whether the specified log level is enabled. + + + + Gets a value indicating whether the Trace level is enabled. + + + + + Gets a value indicating whether the Debug level is enabled. + + + + + Gets a value indicating whether the Info level is enabled. + + + + + Gets a value indicating whether the Warn level is enabled. + + + + + Gets a value indicating whether the Error level is enabled. + + + + + Gets a value indicating whether the Fatal level is enabled. + + + + + Gets or sets the logger name. + + + + + Writes the diagnostic message at the specified level. + + The log level. + A to be written. + + + + Writes the diagnostic message at the Trace level. + + A to be written. + + + + Writes the diagnostic message at the Debug level. + + A to be written. + + + + Writes the diagnostic message at the Info level. + + A to be written. + + + + Writes the diagnostic message at the Warn level. + + A to be written. + + + + Writes the diagnostic message at the Error level. + + A to be written. + + + + Writes the diagnostic message at the Fatal level. + + A to be written. + + + + Checks if the specified log level is enabled. + + The log level. + + A value indicating whether the specified log level is enabled. + + + + + Gets a value indicating whether the Trace level is enabled. + + + + + + Gets a value indicating whether the Debug level is enabled. + + + + + + Gets a value indicating whether the Info level is enabled. + + + + + + Gets a value indicating whether the Warn level is enabled. + + + + + + Gets a value indicating whether the Error level is enabled. + + + + + + Gets a value indicating whether the Fatal level is enabled. + + + + + + Gets or sets the logger name. + + + + + + NLog COM Interop LogManager implementation. + + + + + NLog COM Interop LogManager interface. + + + + + Loads NLog configuration from the specified file. + + The name of the file to load NLog configuration from. + + + + Creates the specified logger object and assigns a LoggerName to it. + + Logger name. + The new logger instance. + + + + Gets or sets a value indicating whether internal messages should be written to the console. + + + + + Gets or sets the name of the internal log file. + + + + + Gets or sets the name of the internal log level. + + + + + Creates the specified logger object and assigns a LoggerName to it. + + The name of the logger. + The new logger instance. + + + + Loads NLog configuration from the specified file. + + The name of the file to load NLog configuration from. + + + + Gets or sets a value indicating whether to log internal messages to the console. + + + A value of true if internal messages should be logged to the console; otherwise, false. + + + + + Gets or sets the name of the internal log level. + + + + + + Gets or sets the name of the internal log file. + + + Asynchronous continuation delegate - function invoked at the end of asynchronous @@ -445,6 +705,19 @@ The message. The inner exception. + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + The parameter is null. + + + The class name is null or is zero (0). + + Condition layout expression (represented by a string literal @@ -773,6 +1046,19 @@ The message. The inner exception. + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + The parameter is null. + + + The class name is null or is zero (0). + + Condition parser. Turns a string representation of condition expression @@ -1037,6 +1323,20 @@ Gets the XML element name. + + + NLog configuration section handler class for configuring NLog from App.config. + + + + + Creates a configuration section handler. + + Parent object. + Configuration context object. + Section XML node. + The created section handler object. + Provides registration information for named items (targets, layouts, layout renderers, etc.) managed by NLog. @@ -1274,6 +1574,11 @@ Provides context for install/uninstall operations. + + + Mapping between log levels and console output colors. + + Initializes a new instance of the class. @@ -1484,6 +1789,30 @@ The new configuration. + + + Arguments for . + + + + + Initializes a new instance of the class. + + Whether configuration reload has succeeded. + The exception during configuration reload. + + + + Gets a value indicating whether configuration reload has succeeded. + + A value of true if succeeded; otherwise, false. + + + + Gets the exception which occurred during configuration reload. + + The exception. + Represents a logging rule. An equivalent of <logger /> configuration element. @@ -1784,6 +2113,19 @@ Provides simple programmatic configuration API used for trivial logging cases. + + + Configures NLog for console logging so that all messages above and including + the level are output to the console. + + + + + Configures NLog for console logging so that all messages above and including + the specified level are output to the console. + + The minimal logging level. + Configures NLog for to log to the specified target so that all messages @@ -1908,6 +2250,12 @@ Name of the file that contains the element (to be used as a base for including other files). Ignore any errors during configuration. + + + Gets the default object by parsing + the application configuration file (app.exe.config). + + Gets or sets a value indicating whether the configuration files @@ -2235,9 +2583,9 @@ Clears the content of the GDC. - + - Helpers for .NET Compact Framework. + Various helper methods for accessing state of ASP application. @@ -2491,6 +2839,11 @@ The enumerable. List of elements. + + + Safe way to get environment variables. + + Helper class for dealing with exceptions. @@ -2667,6 +3020,67 @@ Interface that provides parameters for create file function. + + + Provides a multiprocess-safe atomic file appends while + keeping the files open. + + + On Unix you can get all the appends to be atomic, even when multiple + processes are trying to write to the same file, because setting the file + pointer to the end of the file and appending can be made one operation. + On Win32 we need to maintain some synchronization between processes + (global named mutex is used for this) + + + + + Initializes a new instance of the class. + + Name of the file. + The parameters. + + + + Writes the specified bytes. + + The bytes to be written. + + + + Closes this instance. + + + + + Flushes this instance. + + + + + Gets the file info. + + The last write time. + Length of the file. + + True if the operation succeeded, false otherwise. + + + + + Factory class. + + + + + Opens the appender for given file name and parameters. + + Name of the file. + Creation parameters. + + Instance of which can be used to write to the file. + + Multi-process and multi-host file appender which attempts @@ -2794,18 +3208,67 @@ Length of the file. A value of true if file information was retrieved successfully, false otherwise. - + - Interface implemented by layouts and layout renderers. + Form helper methods. - + - Renders the the value of layout or layout renderer in the context of the specified log event. + Creates RichTextBox and docks in parentForm. + + Name of RichTextBox. + Form to dock RichTextBox. + Created RichTextBox. + + + + Finds control embedded on searchControl. + + Name of the control. + Control in which we're searching for control. + A value of null if no control has been found. + + + + Finds control of specified type embended on searchControl. + + The type of the control. + Name of the control. + Control in which we're searching for control. + + A value of null if no control has been found. + + + + + Creates a form. + + Name of form. + Width of form. + Height of form. + Auto show form. + If set to true the form will be minimized. + If set to true the form will be created as tool window. + Created form. + + + + Interface implemented by layouts and layout renderers. + + + + + Renders the the value of layout or layout renderer in the context of the specified log event. The log event. String representation of a layout. + + + Supports mocking of SMTP Client code. + + Supports object initialization and termination. @@ -2832,22 +3295,6 @@ Gets the level of stack trace information required by the implementing class. - - - Define Localizable attribute for platforms that don't have it. - - - - - Initializes a new instance of the class. - - Determines whether the target is localizable. - - - - Gets or sets a value indicating whether the target is localizable. - - Logger configuration. @@ -2875,6 +3322,88 @@ A value of true if the specified level is enabled; otherwise, false. + + + Watches multiple files at the same time and raises an event whenever + a single change is detected in any of those files. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Stops the watching. + + + + + Watches the specified files for changes. + + The file names. + + + + Occurs when a change is detected in one of the monitored files. + + + + + Supports mocking of SMTP Client code. + + + + + Sends a QUIT message to the SMTP server, gracefully ends the TCP connection, and releases all resources used by the current instance of the class. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + + + + Supports mocking of SMTP Client code. + + Creates instances of objects for given URLs. @@ -3005,16 +3534,6 @@ A newly created network sender. - - - Emulate missing functionality from .NET Compact Framework - - - - - Emulate missing functionality from .NET Compact Framework - - Socket proxy for mocking Socket code. @@ -3033,25 +3552,25 @@ Closes the wrapped socket. - + Invokes ConnectAsync method on the wrapped socket. - The instance containing the event data. + The instance containing the event data. Result of original method. - + Invokes SendAsync method on the wrapped socket. - The instance containing the event data. + The instance containing the event data. Result of original method. - + Invokes SendToAsync method on the wrapped socket. - The instance containing the event data. + The instance containing the event data. Result of original method. @@ -3109,7 +3628,7 @@ - Facilitates mocking of class. + Facilitates mocking of class. @@ -3209,6 +3728,82 @@ A value of true if file information was retrieved successfully, false otherwise. + + + Portable implementation of . + + + + + Returns details about current process and thread in a portable manner. + + + + + Initializes static members of the ThreadIDHelper class. + + + + + Gets the singleton instance of PortableThreadIDHelper or + Win32ThreadIDHelper depending on runtime environment. + + The instance. + + + + Gets current thread ID. + + + + + Gets current process ID. + + + + + Gets current process name. + + + + + Gets current process name (excluding filename extension, if any). + + + + + Initializes a new instance of the class. + + + + + Gets the name of the process. + + + + + Gets current thread ID. + + + + + + Gets current process ID. + + + + + + Gets current process name. + + + + + + Gets current process name (excluding filename extension, if any). + + + Reflection helpers for accessing properties. @@ -3299,43 +3894,6 @@ The next item in the chain. - - - Returns details about current process and thread in a portable manner. - - - - - Initializes static members of the ThreadIDHelper class. - - - - - Gets the singleton instance of PortableThreadIDHelper or - Win32ThreadIDHelper depending on runtime environment. - - The instance. - - - - Gets current thread ID. - - - - - Gets current process ID. - - - - - Gets current process name. - - - - - Gets current process name (excluding filename extension, if any). - - Wraps with a timeout. @@ -3364,6 +3922,23 @@ URL Encoding helper. + + + Win32-optimized implementation of . + + + + + Gets the information about a file. + + Name of the file. + The file handle. + The last write time of the file. + Length of the file. + + A value of true if file information was retrieved successfully, false otherwise. + + Win32-optimized implementation of . @@ -3409,9 +3984,9 @@ Ambient property name. - + - The current application domain's base directory. + ASP Application variable. @@ -3489,85 +4064,209 @@ Gets the logging configuration this target is part of. - - - Initializes a new instance of the class. - - - + - Renders the application base directory and appends it to the specified . + Renders the specified ASP Application variable and appends it to the specified . The to append the rendered data to. Logging event. - - - Gets or sets the name of the file to be Path.Combine()'d with with the base directory. - - - - + - Gets or sets the name of the directory to be Path.Combine()'d with with the base directory. + Gets or sets the ASP Application variable name. - + - + - A counter value (increases on each layout rendering). + ASP Request variable. - + - Initializes a new instance of the class. + Renders the specified ASP Request variable and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Renders the specified counter value and appends it to the specified . + Gets or sets the item name. The QueryString, Form, Cookies, or ServerVariables collection variables having the specified name are rendered. - The to append the rendered data to. - Logging event. + - + - Gets or sets the initial value of the counter. + Gets or sets the QueryString variable to be rendered. - + - + - Gets or sets the value to be added to the counter after each layout rendering. + Gets or sets the form variable to be rendered. - + - + - Gets or sets the name of the sequence. Different named sequences can have individual values. + Gets or sets the cookie to be rendered. - + - + - Current date and time. + Gets or sets the ServerVariables item to be rendered. + - + - Initializes a new instance of the class. + ASP Session variable. - + - Renders the current date and appends it to the specified . + Renders the specified ASP Session variable and appends it to the specified . The to append the rendered data to. Logging event. - + - Gets or sets the culture used for rendering. + Gets or sets the session variable name. + + + + + + The current application domain's base directory. + + + + + Initializes a new instance of the class. + + + + + Renders the application base directory and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the file to be Path.Combine()'d with with the base directory. + + + + + + Gets or sets the name of the directory to be Path.Combine()'d with with the base directory. + + + + + + The call site (class name, method name and source information). + + + + + Initializes a new instance of the class. + + + + + Renders the call site and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets a value indicating whether to render the class name. + + + + + + Gets or sets a value indicating whether to render the method name. + + + + + + Gets or sets a value indicating whether to render the source file name and line number. + + + + + + Gets or sets a value indicating whether to include source file path. + + + + + + Gets the level of stack trace information required by the implementing class. + + + + + A counter value (increases on each layout rendering). + + + + + Initializes a new instance of the class. + + + + + Renders the specified counter value and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the initial value of the counter. + + + + + + Gets or sets the value to be added to the counter after each layout rendering. + + + + + + Gets or sets the name of the sequence. Different named sequences can have individual values. + + + + + + Current date and time. + + + + + Initializes a new instance of the class. + + + + + Renders the current date and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the culture used for rendering. @@ -3577,6 +4276,24 @@ + + + The environment variable. + + + + + Renders the specified environment variable and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the environment variable. + + + Log event context data. @@ -3657,6 +4374,29 @@ The encoding. + + + The information about the garbage collector. + + + + + Initializes a new instance of the class. + + + + + Renders the selected process information. + + The to append the rendered data to. + Logging event. + + + + Gets or sets the property to retrieve. + + + Gets or sets the property of System.GC to retrieve. @@ -3733,6 +4473,55 @@ + + + Thread identity information (name and authentication information). + + + + + Initializes a new instance of the class. + + + + + Renders the specified identity information and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the separator to be used when concatenating + parts of identity information. + + + + + + Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.Name. + + + + + + Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.AuthenticationType. + + + + + + Gets or sets a value indicating whether to render Thread.CurrentPrincipal.Identity.IsAuthenticated. + + + + + + Gets or sets a value indicating whether to modify the output of this renderer so it can be used as a part of file path + (illegal characters are replaced with '_'). + + + Installation parameter (passed to InstallNLogConfig). @@ -3843,6 +4632,18 @@ + + + Gets or sets a value indicating whether to include call site (class and method name) in the information sent over the network. + + + + + + Gets or sets a value indicating whether to include source info (file name and line number) in the information sent over the network. + + + Gets or sets a value indicating whether to include contents of the dictionary. @@ -3890,6 +4691,23 @@ The to append the rendered data to. Logging event. + + + The machine name that the process is running on. + + + + + Initializes the layout renderer. + + + + + Renders the machine name and appends it to the specified . + + The to append the rendered data to. + Logging event. + Mapped Diagnostic Context item. Provided for compatibility with log4net. @@ -3996,2153 +4814,2048 @@ - + - The identifier of the current process. + The performance counter. - + - Renders the current process ID. + Initializes the layout renderer. - The to append the rendered data to. - Logging event. - + - The name of the current process. + Closes the layout renderer. - + - Renders the current process name (optionally with a full path). + Renders the specified environment variable and appends it to the specified . The to append the rendered data to. Logging event. - + - Gets or sets a value indicating whether to write the full path to the process executable. + Gets or sets the name of the counter category. - + - + - The process time in format HH:mm:ss.mmm. + Gets or sets the name of the performance counter. + - + - Renders the current process running time and appends it to the specified . + Gets or sets the name of the performance counter instance (e.g. this.Global_). + + + + + + Gets or sets the name of the machine to read the performance counter from. + + + + + + The identifier of the current process. + + + + + Renders the current process ID. The to append the rendered data to. Logging event. - + - High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds. + The information about the running process. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + Initializes the layout renderer. - + - Renders the ticks value of current time and appends it to the specified . + Closes the layout renderer. + + + + + Renders the selected process information. The to append the rendered data to. Logging event. - + - Gets or sets a value indicating whether to normalize the result by subtracting - it from the result of the first call (so that it's effectively zero-based). + Gets or sets the property to retrieve. - + - Gets or sets a value indicating whether to output the difference between the result - of QueryPerformanceCounter and the previous one. + Property of System.Diagnostics.Process to retrieve. - - + - Gets or sets a value indicating whether to convert the result to seconds by dividing - by the result of QueryPerformanceFrequency(). + Base Priority. - - + - Gets or sets the number of decimal digits to be included in output. + Exit Code. - - + - Gets or sets a value indicating whether to align decimal point (emit non-significant zeros). + Exit Time. - - + - A value from the Registry. + Process Handle. - + - Reads the specified registry key and value and appends it to - the passed . + Handle Count. - The to append the rendered data to. - Logging event. Ignored. - + - Gets or sets the registry value name. + Whether process has exited. - - + - Gets or sets the value to be output when the specified registry key or value is not found. + Process ID. - - + - Gets or sets the registry key. + Machine name. - - Must have one of the forms: -
    -
  • HKLM\Key\Full\Name
  • -
  • HKEY_LOCAL_MACHINE\Key\Full\Name
  • -
  • HKCU\Key\Full\Name
  • -
  • HKEY_CURRENT_USER\Key\Full\Name
  • -
-
-
- + - The short date in a sortable format yyyy-MM-dd. + Handle of the main window. - + - Renders the current short date string (yyyy-MM-dd) and appends it to the specified . + Title of the main window. - The to append the rendered data to. - Logging event. - + - Specifies application information to display in ${sl-appinfo} renderer. + Maximum Working Set. - + - URI of the current application XAP file. + Minimum Working Set. - + - Whether application is running out-of-browser. + Non-paged System Memory Size. - + - Installed state of an application. + Non-paged System Memory Size (64-bit). - + - Whether application is running with elevated permissions. + Paged Memory Size. - + - A temporary directory. + Paged Memory Size (64-bit).. - + - Renders the directory where NLog is located and appends it to the specified . + Paged System Memory Size. - The to append the rendered data to. - Logging event. - + - Gets or sets the name of the file to be Path.Combine()'d with the directory name. + Paged System Memory Size (64-bit). - - + - Gets or sets the name of the directory to be Path.Combine()'d with the directory name. + Peak Paged Memory Size. - - + - The identifier of the current thread. + Peak Paged Memory Size (64-bit). - + - Renders the current thread identifier and appends it to the specified . + Peak Vitual Memory Size. - The to append the rendered data to. - Logging event. - + - The name of the current thread. + Peak Virtual Memory Size (64-bit).. - + - Renders the current thread name and appends it to the specified . + Peak Working Set Size. - The to append the rendered data to. - Logging event. - + - The Ticks value of current date and time. + Peak Working Set Size (64-bit). - + - Renders the ticks value of current time and appends it to the specified . + Whether priority boost is enabled. - The to append the rendered data to. - Logging event. - + - Applies caching to another layout output. + Priority Class. - - The value of the inner layout will be rendered only once and reused subsequently. - - + - Decodes text "encrypted" with ROT-13. + Private Memory Size. - - See http://en.wikipedia.org/wiki/ROT13. - - + - Renders the inner message, processes it and appends it to the specified . + Private Memory Size (64-bit). - The to append the rendered data to. - Logging event. - + - Transforms the output of another layout. + Privileged Processor Time. - Output to be transform. - Transformed text. - + - Renders the inner layout contents. + Process Name. - The log event. - Contents of inner layout. - + - Gets or sets the wrapped layout. + Whether process is responding. - - + - Initializes a new instance of the class. + Session ID. - + - Initializes the layout renderer. + Process Start Time. - + - Closes the layout renderer. + Total Processor Time. - + - Transforms the output of another layout. + User Processor Time. - Output to be transform. - Transformed text. - + - Renders the inner layout contents. + Virtual Memory Size. - The log event. - Contents of inner layout. - + - Gets or sets a value indicating whether this is enabled. + Virtual Memory Size (64-bit). - - + - Converts the result of another layout output to lower case. + Working Set Size. - + - Initializes a new instance of the class. + Working Set Size (64-bit). - + - Post-processes the rendered message. + The name of the current process. - The text to be post-processed. - Padded and trimmed string. - + - Gets or sets a value indicating whether lower case conversion should be applied. + Renders the current process name (optionally with a full path). - A value of true if lower case conversion should be applied; otherwise, false. - + The to append the rendered data to. + Logging event. - + - Gets or sets the culture used for rendering. + Gets or sets a value indicating whether to write the full path to the process executable. - + - + - Applies padding to another layout output. + The process time in format HH:mm:ss.mmm. - + - Initializes a new instance of the class. + Renders the current process running time and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Transforms the output of another layout. + High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds. - Output to be transform. - Transformed text. - + - Gets or sets the number of characters to pad the output to. + Initializes a new instance of the class. - - Positive padding values cause left padding, negative values - cause right padding to the desired width. - - - + - Gets or sets the padding character. + Initializes the layout renderer. - - + - Gets or sets a value indicating whether to trim the - rendered text to the absolute value of the padding length. + Renders the ticks value of current time and appends it to the specified . - + The to append the rendered data to. + Logging event. - + - Replaces a string in the output of another layout with another string. + Gets or sets a value indicating whether to normalize the result by subtracting + it from the result of the first call (so that it's effectively zero-based). + - + - Initializes the layout renderer. + Gets or sets a value indicating whether to output the difference between the result + of QueryPerformanceCounter and the previous one. + - + - Post-processes the rendered message. + Gets or sets a value indicating whether to convert the result to seconds by dividing + by the result of QueryPerformanceFrequency(). - The text to be post-processed. - Post-processed text. + - + - Gets or sets the text to search for. + Gets or sets the number of decimal digits to be included in output. - The text search for. - + - + - Gets or sets a value indicating whether regular expressions should be used. + Gets or sets a value indicating whether to align decimal point (emit non-significant zeros). - A value of true if regular expressions should be used otherwise, false. - + - + - Gets or sets the replacement string. + A value from the Registry. - The replacement string. - - + - Gets or sets a value indicating whether to ignore case. + Reads the specified registry key and value and appends it to + the passed . - A value of true if case should be ignored when searching; otherwise, false. - + The to append the rendered data to. + Logging event. Ignored. - + - Gets or sets a value indicating whether to search for whole words. + Gets or sets the registry value name. - A value of true if whole words should be searched for; otherwise, false. - + - + - Decodes text "encrypted" with ROT-13. + Gets or sets the value to be output when the specified registry key or value is not found. + + + + + + Gets or sets the registry key. - See http://en.wikipedia.org/wiki/ROT13. + Must have one of the forms: +
    +
  • HKLM\Key\Full\Name
  • +
  • HKEY_LOCAL_MACHINE\Key\Full\Name
  • +
  • HKCU\Key\Full\Name
  • +
  • HKEY_CURRENT_USER\Key\Full\Name
  • +
+
- + - Encodes/Decodes ROT-13-encoded string. + The short date in a sortable format yyyy-MM-dd. - The string to be encoded/decoded. - Encoded/Decoded text. - + - Transforms the output of another layout. + Renders the current short date string (yyyy-MM-dd) and appends it to the specified . - Output to be transform. - Transformed text. + The to append the rendered data to. + Logging event. - + - Gets or sets the layout to be wrapped. + Specifies application information to display in ${sl-appinfo} renderer. - The layout to be wrapped. - This variable is for backwards compatibility - - + - Trims the whitespace from the result of another layout renderer. + URI of the current application XAP file. - + - Initializes a new instance of the class. + Whether application is running out-of-browser. - + - Post-processes the rendered message. + Installed state of an application. - The text to be post-processed. - Trimmed string. - + - Gets or sets a value indicating whether lower case conversion should be applied. + Whether application is running with elevated permissions. - A value of true if lower case conversion should be applied; otherwise, false. - - + - Converts the result of another layout output to upper case. + System special folder path (includes My Documents, My Music, Program Files, Desktop, and more). - + - Initializes a new instance of the class. + Renders the directory where NLog is located and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Post-processes the rendered message. + Gets or sets the system special folder to use. - The text to be post-processed. - Padded and trimmed string. + + Full list of options is available at MSDN. + The most common ones are: +
    +
  • ApplicationData - roaming application data for current user.
  • +
  • CommonApplicationData - application data for all users.
  • +
  • MyDocuments - My Documents
  • +
  • DesktopDirectory - Desktop directory
  • +
  • LocalApplicationData - non roaming application data
  • +
  • Personal - user profile directory
  • +
  • System - System directory
  • +
+
+
- + - Gets or sets a value indicating whether upper case conversion should be applied. + Gets or sets the name of the file to be Path.Combine()'d with the directory name. - A value of true if upper case conversion should be applied otherwise, false. - + - + - Gets or sets the culture used for rendering. + Gets or sets the name of the directory to be Path.Combine()'d with the directory name. - + - + - Encodes the result of another layout output for use with URLs. + Format of the ${stacktrace} layout renderer output. - + - Initializes a new instance of the class. + Raw format (multiline - as returned by StackFrame.ToString() method). - + - Transforms the output of another layout. + Flat format (class and method names displayed in a single line). - Output to be transform. - Transformed text. - + - Gets or sets a value indicating whether spaces should be translated to '+' or '%20'. + Detailed flat format (method signatures displayed in a single line). - A value of true if space should be translated to '+'; otherwise, false. - - + - A column in the CSV. + Stack trace renderer. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Renders the call site and appends it to the specified . - The name of the column. - The layout of the column. + The to append the rendered data to. + Logging event. - + - Gets or sets the name of the column. + Gets or sets the output format of the stack trace. - + - + - Gets or sets the layout of the column. + Gets or sets the number of top stack frames to be rendered. - + - + - Specifies allowed column delimiters. + Gets or sets the stack frame separator string. + - + - Automatically detect from regional settings. + Gets the level of stack trace information required by the implementing class. + - + - Comma (ASCII 44). + A temporary directory. - + - Semicolon (ASCII 59). + Renders the directory where NLog is located and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Tab character (ASCII 9). + Gets or sets the name of the file to be Path.Combine()'d with the directory name. + - + - Pipe character (ASCII 124). + Gets or sets the name of the directory to be Path.Combine()'d with the directory name. + - + - Space character (ASCII 32). + The identifier of the current thread. - + - Custom string, specified by the CustomDelimiter. + Renders the current thread identifier and appends it to the specified . + The to append the rendered data to. + Logging event. - + - A specialized layout that renders CSV-formatted events. + The name of the current thread. - + - A specialized layout that supports header and footer. + Renders the current thread name and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Abstract interface that layouts must implement. + The Ticks value of current date and time. - + - Converts a given text to a . + Renders the ticks value of current time and appends it to the specified . - Text to be converted. - object represented by the text. + The to append the rendered data to. + Logging event. - + - Implicitly converts the specified string to a . + Thread Windows identity information (username). - The layout string. - Instance of . - + - Implicitly converts the specified string to a . + Initializes a new instance of the class. - The layout string. - The NLog factories to use when resolving layout renderers. - Instance of . - + - Precalculates the layout for the specified log event and stores the result - in per-log event cache. + Renders the current thread windows identity information and appends it to the specified . - The log event. - - Calling this method enables you to store the log event in a buffer - and/or potentially evaluate it in another thread even though the - layout may contain thread-dependent renderer. - + The to append the rendered data to. + Logging event. - + - Renders the event info in layout. + Gets or sets a value indicating whether domain name should be included. - The event info. - String representing log event. + - + - Initializes this instance. + Gets or sets a value indicating whether username should be included. - The configuration. + - + - Closes this instance. + Applies caching to another layout output. + + The value of the inner layout will be rendered only once and reused subsequently. + - + - Initializes this instance. + Decodes text "encrypted" with ROT-13. - The configuration. + + See http://en.wikipedia.org/wiki/ROT13. + - + - Closes this instance. + Renders the inner message, processes it and appends it to the specified . + The to append the rendered data to. + Logging event. - + - Initializes the layout. + Transforms the output of another layout. + Output to be transform. + Transformed text. - + - Closes the layout. + Renders the inner layout contents. + The log event. + Contents of inner layout. - + - Renders the layout for the specified logging event by invoking layout renderers. + Gets or sets the wrapped layout. - The logging event. - The rendered layout. + - + - Gets the logging configuration this target is part of. + Initializes a new instance of the class. - + - Precalculates the layout for the specified log event and stores the result - in per-log event cache. + Initializes the layout renderer. - The log event. - - Calling this method enables you to store the log event in a buffer - and/or potentially evaluate it in another thread even though the - layout may contain thread-dependent renderer. - - + - Renders the layout for the specified logging event by invoking layout renderers. + Closes the layout renderer. - The logging event. - The rendered layout. - + - Gets or sets the body layout (can be repeated multiple times). + Transforms the output of another layout. - + Output to be transform. + Transformed text. - + - Gets or sets the header layout. + Renders the inner layout contents. - + The log event. + Contents of inner layout. - + - Gets or sets the footer layout. + Gets or sets a value indicating whether this is enabled. - + - + - Initializes a new instance of the class. + Converts the result of another layout output to lower case. - + - Initializes the layout. + Initializes a new instance of the class. - + - Formats the log event for write. + Post-processes the rendered message. - The log event to be formatted. - A string representation of the log event. + The text to be post-processed. + Padded and trimmed string. - + - Gets the array of parameters to be passed. + Gets or sets a value indicating whether lower case conversion should be applied. - + A value of true if lower case conversion should be applied; otherwise, false. + - + - Gets or sets a value indicating whether CVS should include header. + Gets or sets the culture used for rendering. - A value of true if CVS should include header; otherwise, false. - + - + - Gets or sets the column delimiter. + Applies padding to another layout output. - - + - Gets or sets the quoting mode. + Initializes a new instance of the class. - - + - Gets or sets the quote Character. + Transforms the output of another layout. - + Output to be transform. + Transformed text. - + - Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + Gets or sets the number of characters to pad the output to. - + + Positive padding values cause left padding, negative values + cause right padding to the desired width. + + - + - Header for CSV layout. + Gets or sets the padding character. + - + - Initializes a new instance of the class. + Gets or sets a value indicating whether to trim the + rendered text to the absolute value of the padding length. - The parent. + - + - Renders the layout for the specified logging event by invoking layout renderers. + Replaces a string in the output of another layout with another string. - The logging event. - The rendered layout. - + - Specifies allowes CSV quoting modes. + Initializes the layout renderer. - + - Quote all column. + Post-processes the rendered message. + The text to be post-processed. + Post-processed text. - + - Quote nothing. + Gets or sets the text to search for. + The text search for. + - + - Quote only whose values contain the quote symbol or - the separator. + Gets or sets a value indicating whether regular expressions should be used. + A value of true if regular expressions should be used otherwise, false. + - + - Marks class as a layout renderer and assigns a format string to it. + Gets or sets the replacement string. + The replacement string. + - + - Initializes a new instance of the class. + Gets or sets a value indicating whether to ignore case. - Layout name. + A value of true if case should be ignored when searching; otherwise, false. + - + - Parses layout strings. + Gets or sets a value indicating whether to search for whole words. + A value of true if whole words should be searched for; otherwise, false. + - + - Simple character tokenizer. + Decodes text "encrypted" with ROT-13. + + See http://en.wikipedia.org/wiki/ROT13. + - + - Initializes a new instance of the class. + Encodes/Decodes ROT-13-encoded string. - The text to be tokenized. + The string to be encoded/decoded. + Encoded/Decoded text. - + - A specialized layout that renders Log4j-compatible XML events. + Transforms the output of another layout. - - This layout is not meant to be used explicitly. Instead you can use ${log4jxmlevent} layout renderer. - + Output to be transform. + Transformed text. - + - Initializes a new instance of the class. + Gets or sets the layout to be wrapped. + The layout to be wrapped. + This variable is for backwards compatibility + - + - Renders the layout for the specified logging event by invoking layout renderers. + Trims the whitespace from the result of another layout renderer. - The logging event. - The rendered layout. - + - Gets the instance that renders log events. + Initializes a new instance of the class. - + - Represents a string with embedded placeholders that can render contextual information. + Post-processes the rendered message. - - This layout is not meant to be used explicitly. Instead you can just use a string containing layout - renderers everywhere the layout is required. - + The text to be post-processed. + Trimmed string. - + - Initializes a new instance of the class. + Gets or sets a value indicating whether lower case conversion should be applied. + A value of true if lower case conversion should be applied; otherwise, false. + - + - Initializes a new instance of the class. + Converts the result of another layout output to upper case. - The layout string to parse. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - The layout string to parse. - The NLog factories to use when creating references to layout renderers. - + - Converts a text to a simple layout. + Post-processes the rendered message. - Text to be converted. - A object. + The text to be post-processed. + Padded and trimmed string. - + - Escapes the passed text so that it can - be used literally in all places where - layout is normally expected without being - treated as layout. + Gets or sets a value indicating whether upper case conversion should be applied. - The text to be escaped. - The escaped text. - - Escaping is done by replacing all occurences of - '${' with '${literal:text=${}' - + A value of true if upper case conversion should be applied otherwise, false. + - + - Evaluates the specified text by expadinging all layout renderers. + Gets or sets the culture used for rendering. - The text to be evaluated. - Log event to be used for evaluation. - The input text with all occurences of ${} replaced with - values provided by the appropriate layout renderers. + - + - Evaluates the specified text by expadinging all layout renderers - in new context. + Encodes the result of another layout output for use with URLs. - The text to be evaluated. - The input text with all occurences of ${} replaced with - values provided by the appropriate layout renderers. - + - Returns a that represents the current object. + Initializes a new instance of the class. - - A that represents the current object. - - + - Renders the layout for the specified logging event by invoking layout renderers - that make up the event. + Transforms the output of another layout. - The logging event. - The rendered layout. + Output to be transform. + Transformed text. - + - Gets or sets the layout text. + Gets or sets a value indicating whether spaces should be translated to '+' or '%20'. - + A value of true if space should be translated to '+'; otherwise, false. + - + - Gets a collection of objects that make up this layout. + A column in the CSV. - + - Represents the logging event. + Initializes a new instance of the class. - + - Gets the date of the first log event created. + Initializes a new instance of the class. + The name of the column. + The layout of the column. - + - Initializes a new instance of the class. + Gets or sets the name of the column. + - + - Initializes a new instance of the class. + Gets or sets the layout of the column. - Log level. - Logger name. - Log message including parameter placeholders. + - + - Initializes a new instance of the class. + Specifies allowed column delimiters. - Log level. - Logger name. - An IFormatProvider that supplies culture-specific formatting information. - Log message including parameter placeholders. - Parameter array. - + - Initializes a new instance of the class. + Automatically detect from regional settings. - Log level. - Logger name. - An IFormatProvider that supplies culture-specific formatting information. - Log message including parameter placeholders. - Parameter array. - Exception information. - + - Creates the null event. + Comma (ASCII 44). - Null log event. - + - Creates the log event. + Semicolon (ASCII 59). - The log level. - Name of the logger. - The message. - Instance of . - + - Creates the log event. + Tab character (ASCII 9). - The log level. - Name of the logger. - The format provider. - The message. - The parameters. - Instance of . - + - Creates the log event. + Pipe character (ASCII 124). - The log level. - Name of the logger. - The format provider. - The message. - Instance of . - + - Creates the log event. + Space character (ASCII 32). - The log level. - Name of the logger. - The message. - The exception. - Instance of . - + - Creates from this by attaching the specified asynchronous continuation. + Custom string, specified by the CustomDelimiter. - The asynchronous continuation. - Instance of with attached continuation. - + - Returns a string representation of this log event. + A specialized layout that renders CSV-formatted events. - String representation of the log event. - + - Gets the unique identifier of log event which is automatically generated - and monotonously increasing. + A specialized layout that supports header and footer. - + - Gets or sets the timestamp of the logging event. + Abstract interface that layouts must implement. - + - Gets or sets the level of the logging event. + Converts a given text to a . + Text to be converted. + object represented by the text. - + - Gets or sets the exception information. + Implicitly converts the specified string to a . + The layout string. + Instance of . - + - Gets or sets the logger name. + Implicitly converts the specified string to a . + The layout string. + The NLog factories to use when resolving layout renderers. + Instance of . - + - Gets the logger short name. + Precalculates the layout for the specified log event and stores the result + in per-log event cache. + The log event. + + Calling this method enables you to store the log event in a buffer + and/or potentially evaluate it in another thread even though the + layout may contain thread-dependent renderer. + - + - Gets or sets the log message including any parameter placeholders. + Renders the event info in layout. + The event info. + String representing log event. - + - Gets or sets the parameter values or null if no parameters have been specified. + Initializes this instance. + The configuration. - + - Gets or sets the format provider that was provided while logging or - when no formatProvider was specified. + Closes this instance. - + - Gets the formatted message. + Initializes this instance. + The configuration. - + - Gets the dictionary of per-event context properties. + Closes this instance. - + - Gets the dictionary of per-event context properties. + Initializes the layout. - + - Creates and manages instances of objects. + Closes the layout. - + - Initializes a new instance of the class. + Renders the layout for the specified logging event by invoking layout renderers. + The logging event. + The rendered layout. - + - Initializes a new instance of the class. + Gets the logging configuration this target is part of. - The config. - + - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + Precalculates the layout for the specified log event and stores the result + in per-log event cache. + The log event. + + Calling this method enables you to store the log event in a buffer + and/or potentially evaluate it in another thread even though the + layout may contain thread-dependent renderer. + - + - Creates a logger that discards all log messages. + Renders the layout for the specified logging event by invoking layout renderers. - Null logger instance. + The logging event. + The rendered layout. - + - Gets the specified named logger. + Gets or sets the body layout (can be repeated multiple times). - Name of the logger. - The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. + - + - Gets the specified named logger. + Gets or sets the header layout. - Name of the logger. - The type of the logger to create. The type must inherit from NLog.Logger. - The logger reference. Multiple calls to GetLogger with the - same argument aren't guaranteed to return the same logger reference. + - + - Loops through all loggers previously returned by GetLogger - and recalculates their target and filter list. Useful after modifying the configuration programmatically - to ensure that all loggers have been properly configured. + Gets or sets the footer layout. + - + - Flush any pending log messages (in case of asynchronous targets). + Initializes a new instance of the class. - + - Flush any pending log messages (in case of asynchronous targets). + Initializes the layout. - Maximum time to allow for the flush. Any messages after that time will be discarded. - + - Flush any pending log messages (in case of asynchronous targets). + Formats the log event for write. - Maximum time to allow for the flush. Any messages after that time will be discarded. + The log event to be formatted. + A string representation of the log event. - + - Flush any pending log messages (in case of asynchronous targets). + Gets the array of parameters to be passed. - The asynchronous continuation. + - + - Flush any pending log messages (in case of asynchronous targets). + Gets or sets a value indicating whether CVS should include header. - The asynchronous continuation. - Maximum time to allow for the flush. Any messages after that time will be discarded. + A value of true if CVS should include header; otherwise, false. + - + - Flush any pending log messages (in case of asynchronous targets). + Gets or sets the column delimiter. - The asynchronous continuation. - Maximum time to allow for the flush. Any messages after that time will be discarded. + - - Decreases the log enable counter and if it reaches -1 - the logs are disabled. - Logging is enabled if the number of calls is greater - than or equal to calls. - An object that iplements IDisposable whose Dispose() method - reenables logging. To be used with C# using () statement. - - - Increases the log enable counter and if it reaches 0 the logs are disabled. - Logging is enabled if the number of calls is greater - than or equal to calls. - - + - Returns if logging is currently enabled. + Gets or sets the quoting mode. - A value of if logging is currently enabled, - otherwise. - Logging is enabled if the number of calls is greater - than or equal to calls. + - + - Releases unmanaged and - optionally - managed resources. + Gets or sets the quote Character. - True to release both managed and unmanaged resources; false to release only unmanaged resources. + - + - Occurs when logging changes. + Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + - + - Gets or sets a value indicating whether exceptions should be thrown. + Header for CSV layout. - A value of true if exceptiosn should be thrown; otherwise, false. - By default exceptions - are not thrown under any circumstances. - - + - Gets or sets the current logging configuration. + Initializes a new instance of the class. + The parent. - + - Gets or sets the global log threshold. Log events below this threshold are not logged. + Renders the layout for the specified logging event by invoking layout renderers. + The logging event. + The rendered layout. - + - Logger cache key. + Specifies allowes CSV quoting modes. - + - Serves as a hash function for a particular type. + Quote all column. - - A hash code for the current . - - + - Determines if two objects are equal in value. + Quote nothing. - Other object to compare to. - True if objects are equal, false otherwise. - + - Enables logging in implementation. + Quote only whose values contain the quote symbol or + the separator. - + - Initializes a new instance of the class. + Marks class as a layout renderer and assigns a format string to it. - The factory. - + - Enables logging. + Initializes a new instance of the class. + Layout name. - + - Specialized LogFactory that can return instances of custom logger types. + Parses layout strings. - The type of the logger to be returned. Must inherit from . - + - Gets the logger. + Simple character tokenizer. - The logger name. - An instance of . - + - Provides logging interface and utility functions. + Initializes a new instance of the class. - - Auto-generated Logger members for binary compatibility with NLog 1.0. - + The text to be tokenized. - + - Initializes a new instance of the class. + A specialized layout that renders Log4j-compatible XML events. + + This layout is not meant to be used explicitly. Instead you can use ${log4jxmlevent} layout renderer. + - + - Gets a value indicating whether logging is enabled for the specified level. + Initializes a new instance of the class. - Log level to be checked. - A value of if logging is enabled for the specified level, otherwise it returns . - + - Writes the specified diagnostic message. + Renders the layout for the specified logging event by invoking layout renderers. - Log event. + The logging event. + The rendered layout. - + - Writes the specified diagnostic message. + Gets the instance that renders log events. - The name of the type that wraps Logger. - Log event. - - - Writes the diagnostic message at the specified level using the specified format provider and format parameters. - + - Writes the diagnostic message at the specified level. + Represents a string with embedded placeholders that can render contextual information. - Type of the value. - The log level. - The value to be written. + + This layout is not meant to be used explicitly. Instead you can just use a string containing layout + renderers everywhere the layout is required. + - + - Writes the diagnostic message at the specified level. + Initializes a new instance of the class. - Type of the value. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - + - Writes the diagnostic message at the specified level. + Initializes a new instance of the class. - The log level. - A function returning message to be written. Function is not evaluated if logging is not enabled. + The layout string to parse. - + - Writes the diagnostic message and exception at the specified level. + Initializes a new instance of the class. - The log level. - A to be written. - An exception to be logged. + The layout string to parse. + The NLog factories to use when creating references to layout renderers. - + - Writes the diagnostic message at the specified level using the specified parameters and formatting them with the supplied format provider. + Converts a text to a simple layout. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing format items. - Arguments to format. + Text to be converted. + A object. - + - Writes the diagnostic message at the specified level. + Escapes the passed text so that it can + be used literally in all places where + layout is normally expected without being + treated as layout. - The log level. - Log message. + The text to be escaped. + The escaped text. + + Escaping is done by replacing all occurences of + '${' with '${literal:text=${}' + - + - Writes the diagnostic message at the specified level using the specified parameters. + Evaluates the specified text by expadinging all layout renderers. - The log level. - A containing format items. - Arguments to format. + The text to be evaluated. + Log event to be used for evaluation. + The input text with all occurences of ${} replaced with + values provided by the appropriate layout renderers. - + - Writes the diagnostic message at the specified level using the specified parameter and formatting it with the supplied format provider. + Evaluates the specified text by expadinging all layout renderers + in new context. - The type of the argument. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + The text to be evaluated. + The input text with all occurences of ${} replaced with + values provided by the appropriate layout renderers. - + - Writes the diagnostic message at the specified level using the specified parameter. + Returns a that represents the current object. - The type of the argument. - The log level. - A containing one format item. - The argument to format. + + A that represents the current object. + - + - Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider. + Renders the layout for the specified logging event by invoking layout renderers + that make up the event. - The type of the first argument. - The type of the second argument. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. + The logging event. + The rendered layout. - + - Writes the diagnostic message at the specified level using the specified parameters. + Gets or sets the layout text. - The type of the first argument. - The type of the second argument. - The log level. - A containing one format item. - The first argument to format. - The second argument to format. + - + - Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider. + Gets a collection of objects that make up this layout. - The type of the first argument. - The type of the second argument. - The type of the third argument. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - + - Writes the diagnostic message at the specified level using the specified parameters. + Represents the logging event. - The type of the first argument. - The type of the second argument. - The type of the third argument. - The log level. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - - - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. - + - Writes the diagnostic message at the Trace level. + Gets the date of the first log event created. - Type of the value. - The value to be written. - + - Writes the diagnostic message at the Trace level. + Initializes a new instance of the class. - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - + - Writes the diagnostic message at the Trace level. + Initializes a new instance of the class. - A function returning message to be written. Function is not evaluated if logging is not enabled. + Log level. + Logger name. + Log message including parameter placeholders. - + - Writes the diagnostic message and exception at the Trace level. + Initializes a new instance of the class. - A to be written. - An exception to be logged. + Log level. + Logger name. + An IFormatProvider that supplies culture-specific formatting information. + Log message including parameter placeholders. + Parameter array. - + - Writes the diagnostic message at the Trace level using the specified parameters and formatting them with the supplied format provider. + Initializes a new instance of the class. + Log level. + Logger name. An IFormatProvider that supplies culture-specific formatting information. - A containing format items. - Arguments to format. + Log message including parameter placeholders. + Parameter array. + Exception information. - + - Writes the diagnostic message at the Trace level. + Creates the null event. - Log message. + Null log event. - + - Writes the diagnostic message at the Trace level using the specified parameters. + Creates the log event. - A containing format items. - Arguments to format. + The log level. + Name of the logger. + The message. + Instance of . - + - Writes the diagnostic message at the Trace level using the specified parameter and formatting it with the supplied format provider. + Creates the log event. - The type of the argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + The log level. + Name of the logger. + The format provider. + The message. + The parameters. + Instance of . - + - Writes the diagnostic message at the Trace level using the specified parameter. + Creates the log event. - The type of the argument. - A containing one format item. - The argument to format. + The log level. + Name of the logger. + The format provider. + The message. + Instance of . - + - Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider. + Creates the log event. - The type of the first argument. - The type of the second argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. + The log level. + Name of the logger. + The message. + The exception. + Instance of . - + - Writes the diagnostic message at the Trace level using the specified parameters. + Creates from this by attaching the specified asynchronous continuation. - The type of the first argument. - The type of the second argument. - A containing one format item. - The first argument to format. - The second argument to format. + The asynchronous continuation. + Instance of with attached continuation. - + - Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider. + Returns a string representation of this log event. - The type of the first argument. - The type of the second argument. - The type of the third argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. + String representation of the log event. - + - Writes the diagnostic message at the Trace level using the specified parameters. + Sets the stack trace for the event info. - The type of the first argument. - The type of the second argument. - The type of the third argument. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. + The stack trace. + Index of the first user stack frame within the stack trace. - - - Writes the diagnostic message at the Debug level using the specified format provider and format parameters. - + - Writes the diagnostic message at the Debug level. + Gets the unique identifier of log event which is automatically generated + and monotonously increasing. - Type of the value. - The value to be written. - + - Writes the diagnostic message at the Debug level. + Gets or sets the timestamp of the logging event. - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - + - Writes the diagnostic message at the Debug level. + Gets or sets the level of the logging event. - A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message and exception at the Debug level. + Gets a value indicating whether stack trace has been set for this event. - A to be written. - An exception to be logged. - + - Writes the diagnostic message at the Debug level using the specified parameters and formatting them with the supplied format provider. + Gets the stack frame of the method that did the logging. - An IFormatProvider that supplies culture-specific formatting information. - A containing format items. - Arguments to format. - + - Writes the diagnostic message at the Debug level. + Gets the number index of the stack frame that represents the user + code (not the NLog code). - Log message. - + - Writes the diagnostic message at the Debug level using the specified parameters. + Gets the entire stack trace. - A containing format items. - Arguments to format. - + - Writes the diagnostic message at the Debug level using the specified parameter and formatting it with the supplied format provider. + Gets or sets the exception information. - The type of the argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. - + - Writes the diagnostic message at the Debug level using the specified parameter. + Gets or sets the logger name. - The type of the argument. - A containing one format item. - The argument to format. - + - Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider. + Gets the logger short name. - The type of the first argument. - The type of the second argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - + - Writes the diagnostic message at the Debug level using the specified parameters. + Gets or sets the log message including any parameter placeholders. - The type of the first argument. - The type of the second argument. - A containing one format item. - The first argument to format. - The second argument to format. - + - Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider. + Gets or sets the parameter values or null if no parameters have been specified. - The type of the first argument. - The type of the second argument. - The type of the third argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - + - Writes the diagnostic message at the Debug level using the specified parameters. + Gets or sets the format provider that was provided while logging or + when no formatProvider was specified. - The type of the first argument. - The type of the second argument. - The type of the third argument. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - - - Writes the diagnostic message at the Info level using the specified format provider and format parameters. - + - Writes the diagnostic message at the Info level. + Gets the formatted message. - Type of the value. - The value to be written. - + - Writes the diagnostic message at the Info level. + Gets the dictionary of per-event context properties. - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - + - Writes the diagnostic message at the Info level. + Gets the dictionary of per-event context properties. - A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message and exception at the Info level. + Creates and manages instances of objects. - A to be written. - An exception to be logged. - + - Writes the diagnostic message at the Info level using the specified parameters and formatting them with the supplied format provider. + Initializes a new instance of the class. - An IFormatProvider that supplies culture-specific formatting information. - A containing format items. - Arguments to format. - + - Writes the diagnostic message at the Info level. + Initializes a new instance of the class. - Log message. + The config. - + - Writes the diagnostic message at the Info level using the specified parameters. + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - A containing format items. - Arguments to format. - + - Writes the diagnostic message at the Info level using the specified parameter and formatting it with the supplied format provider. + Creates a logger that discards all log messages. - The type of the argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + Null logger instance. - + - Writes the diagnostic message at the Info level using the specified parameter. + Gets the logger named after the currently-being-initialized class. - The type of the argument. - A containing one format item. - The argument to format. + The logger. + This is a slow-running method. + Make sure you're not doing this in a loop. - + - Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider. + Gets the logger named after the currently-being-initialized class. - The type of the first argument. - The type of the second argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. + The type of the logger to create. The type must inherit from NLog.Logger. + The logger. + This is a slow-running method. + Make sure you're not doing this in a loop. - + - Writes the diagnostic message at the Info level using the specified parameters. + Gets the specified named logger. - The type of the first argument. - The type of the second argument. - A containing one format item. - The first argument to format. - The second argument to format. + Name of the logger. + The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. - + - Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider. + Gets the specified named logger. - The type of the first argument. - The type of the second argument. - The type of the third argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. + Name of the logger. + The type of the logger to create. The type must inherit from NLog.Logger. + The logger reference. Multiple calls to GetLogger with the + same argument aren't guaranteed to return the same logger reference. - + - Writes the diagnostic message at the Info level using the specified parameters. + Loops through all loggers previously returned by GetLogger + and recalculates their target and filter list. Useful after modifying the configuration programmatically + to ensure that all loggers have been properly configured. - The type of the first argument. - The type of the second argument. - The type of the third argument. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - - - Writes the diagnostic message at the Warn level using the specified format provider and format parameters. - + - Writes the diagnostic message at the Warn level. + Flush any pending log messages (in case of asynchronous targets). - Type of the value. - The value to be written. - + - Writes the diagnostic message at the Warn level. + Flush any pending log messages (in case of asynchronous targets). - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. + Maximum time to allow for the flush. Any messages after that time will be discarded. - + - Writes the diagnostic message at the Warn level. + Flush any pending log messages (in case of asynchronous targets). - A function returning message to be written. Function is not evaluated if logging is not enabled. + Maximum time to allow for the flush. Any messages after that time will be discarded. - + - Writes the diagnostic message and exception at the Warn level. + Flush any pending log messages (in case of asynchronous targets). - A to be written. - An exception to be logged. + The asynchronous continuation. - + - Writes the diagnostic message at the Warn level using the specified parameters and formatting them with the supplied format provider. + Flush any pending log messages (in case of asynchronous targets). - An IFormatProvider that supplies culture-specific formatting information. - A containing format items. - Arguments to format. + The asynchronous continuation. + Maximum time to allow for the flush. Any messages after that time will be discarded. - + - Writes the diagnostic message at the Warn level. + Flush any pending log messages (in case of asynchronous targets). - Log message. + The asynchronous continuation. + Maximum time to allow for the flush. Any messages after that time will be discarded. - + + Decreases the log enable counter and if it reaches -1 + the logs are disabled. + Logging is enabled if the number of calls is greater + than or equal to calls. + An object that iplements IDisposable whose Dispose() method + reenables logging. To be used with C# using () statement. + + + Increases the log enable counter and if it reaches 0 the logs are disabled. + Logging is enabled if the number of calls is greater + than or equal to calls. + + - Writes the diagnostic message at the Warn level using the specified parameters. + Returns if logging is currently enabled. - A containing format items. - Arguments to format. + A value of if logging is currently enabled, + otherwise. + Logging is enabled if the number of calls is greater + than or equal to calls. - + - Writes the diagnostic message at the Warn level using the specified parameter and formatting it with the supplied format provider. + Releases unmanaged and - optionally - managed resources. - The type of the argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + True to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Writes the diagnostic message at the Warn level using the specified parameter. + Occurs when logging changes. - The type of the argument. - A containing one format item. - The argument to format. - + - Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider. + Occurs when logging gets reloaded. - The type of the first argument. - The type of the second argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - + - Writes the diagnostic message at the Warn level using the specified parameters. + Gets or sets a value indicating whether exceptions should be thrown. - The type of the first argument. - The type of the second argument. - A containing one format item. - The first argument to format. - The second argument to format. + A value of true if exceptiosn should be thrown; otherwise, false. + By default exceptions + are not thrown under any circumstances. + - + - Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider. + Gets or sets the current logging configuration. - The type of the first argument. - The type of the second argument. - The type of the third argument. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - + - Writes the diagnostic message at the Warn level using the specified parameters. + Gets or sets the global log threshold. Log events below this threshold are not logged. - The type of the first argument. - The type of the second argument. - The type of the third argument. - A containing one format item. - The first argument to format. - The second argument to format. - The third argument to format. - - - Writes the diagnostic message at the Error level using the specified format provider and format parameters. - + - Writes the diagnostic message at the Error level. + Logger cache key. - Type of the value. - The value to be written. - + - Writes the diagnostic message at the Error level. + Serves as a hash function for a particular type. - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. + + A hash code for the current . + - + - Writes the diagnostic message at the Error level. + Determines if two objects are equal in value. + Other object to compare to. + True if objects are equal, false otherwise. + + + + Enables logging in implementation. + + + + + Initializes a new instance of the class. + + The factory. + + + + Enables logging. + + + + + Specialized LogFactory that can return instances of custom logger types. + + The type of the logger to be returned. Must inherit from . + + + + Gets the logger. + + The logger name. + An instance of . + + + + Gets the logger named after the currently-being-initialized class. + + The logger. + This is a slow-running method. + Make sure you're not doing this in a loop. + + + + Provides logging interface and utility functions. + + + Auto-generated Logger members for binary compatibility with NLog 1.0. + + + + + Initializes a new instance of the class. + + + + + Gets a value indicating whether logging is enabled for the specified level. + + Log level to be checked. + A value of if logging is enabled for the specified level, otherwise it returns . + + + + Writes the specified diagnostic message. + + Log event. + + + + Writes the specified diagnostic message. + + The name of the type that wraps Logger. + Log event. + + + + Writes the diagnostic message at the specified level using the specified format provider and format parameters. + + + Writes the diagnostic message at the specified level. + + Type of the value. + The log level. + The value to be written. + + + + Writes the diagnostic message at the specified level. + + Type of the value. + The log level. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. + + + + Writes the diagnostic message at the specified level. + + The log level. A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message and exception at the Error level. + Writes the diagnostic message and exception at the specified level. + The log level. A to be written. An exception to be logged. - + - Writes the diagnostic message at the Error level using the specified parameters and formatting them with the supplied format provider. + Writes the diagnostic message at the specified level using the specified parameters and formatting them with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing format items. Arguments to format. - + - Writes the diagnostic message at the Error level. + Writes the diagnostic message at the specified level. + The log level. Log message. - + - Writes the diagnostic message at the Error level using the specified parameters. + Writes the diagnostic message at the specified level using the specified parameters. + The log level. A containing format items. Arguments to format. - + - Writes the diagnostic message at the Error level using the specified parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified parameter and formatting it with the supplied format provider. The type of the argument. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified parameter. + Writes the diagnostic message at the specified level using the specified parameter. The type of the argument. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider. The type of the first argument. The type of the second argument. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The first argument to format. The second argument to format. - + - Writes the diagnostic message at the Error level using the specified parameters. + Writes the diagnostic message at the specified level using the specified parameters. The type of the first argument. The type of the second argument. + The log level. A containing one format item. The first argument to format. The second argument to format. - + - Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified arguments formatting it with the supplied format provider. The type of the first argument. The type of the second argument. The type of the third argument. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The first argument to format. The second argument to format. The third argument to format. - + - Writes the diagnostic message at the Error level using the specified parameters. + Writes the diagnostic message at the specified level using the specified parameters. The type of the first argument. The type of the second argument. The type of the third argument. + The log level. A containing one format item. The first argument to format. The second argument to format. The third argument to format. - + - Writes the diagnostic message at the Fatal level using the specified format provider and format parameters. + Writes the diagnostic message at the Trace level using the specified format provider and format parameters. - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Trace level. Type of the value. The value to be written. - + - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Trace level. Type of the value. An IFormatProvider that supplies culture-specific formatting information. The value to be written. - + - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Trace level. A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message and exception at the Fatal level. + Writes the diagnostic message and exception at the Trace level. A to be written. An exception to be logged. - + - Writes the diagnostic message at the Fatal level using the specified parameters and formatting them with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified parameters and formatting them with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing format items. Arguments to format. - + - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Trace level. Log message. - + - Writes the diagnostic message at the Fatal level using the specified parameters. + Writes the diagnostic message at the Trace level using the specified parameters. A containing format items. Arguments to format. - + - Writes the diagnostic message at the Fatal level using the specified parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified parameter and formatting it with the supplied format provider. The type of the argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified parameter. + Writes the diagnostic message at the Trace level using the specified parameter. The type of the argument. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider. The type of the first argument. The type of the second argument. @@ -6151,9 +6864,9 @@ The first argument to format. The second argument to format. - + - Writes the diagnostic message at the Fatal level using the specified parameters. + Writes the diagnostic message at the Trace level using the specified parameters. The type of the first argument. The type of the second argument. @@ -6161,9 +6874,9 @@ The first argument to format. The second argument to format. - + - Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified arguments formatting it with the supplied format provider. The type of the first argument. The type of the second argument. @@ -6174,9 +6887,9 @@ The second argument to format. The third argument to format. - + - Writes the diagnostic message at the Fatal level using the specified parameters. + Writes the diagnostic message at the Trace level using the specified parameters. The type of the first argument. The type of the second argument. @@ -6186,2438 +6899,4343 @@ The second argument to format. The third argument to format. - + + + Writes the diagnostic message at the Debug level using the specified format provider and format parameters. + - Writes the diagnostic message at the specified level. + Writes the diagnostic message at the Debug level. - The log level. - A to be written. + Type of the value. + The value to be written. - + - Writes the diagnostic message at the specified level. + Writes the diagnostic message at the Debug level. - The log level. + Type of the value. An IFormatProvider that supplies culture-specific formatting information. - A to be written. + The value to be written. - + - Writes the diagnostic message at the specified level using the specified parameters. + Writes the diagnostic message at the Debug level. - The log level. - A containing format items. - First argument to format. - Second argument to format. + A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message at the specified level using the specified parameters. + Writes the diagnostic message and exception at the Debug level. - The log level. - A containing format items. - First argument to format. - Second argument to format. - Third argument to format. + A to be written. + An exception to be logged. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified parameters and formatting them with the supplied format provider. - The log level. An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Debug level. - The log level. - A containing one format item. - The argument to format. + Log message. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified parameters. - The log level. + A containing format items. + Arguments to format. + + + + Writes the diagnostic message at the Debug level using the specified parameter and formatting it with the supplied format provider. + + The type of the argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified parameter. - The log level. + The type of the argument. A containing one format item. The argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider. - The log level. + The type of the first argument. + The type of the second argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified parameters. - The log level. + The type of the first argument. + The type of the second argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified arguments formatting it with the supplied format provider. - The log level. + The type of the first argument. + The type of the second argument. + The type of the third argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified parameters. - The log level. + The type of the first argument. + The type of the second argument. + The type of the third argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + + + Writes the diagnostic message at the Info level using the specified format provider and format parameters. + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + Type of the value. + The value to be written. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Info level. - The log level. - A containing one format item. - The argument to format. + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message and exception at the Info level. - The log level. - A containing one format item. - The argument to format. + A to be written. + An exception to be logged. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified parameters and formatting them with the supplied format provider. - The log level. An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Info level. - The log level. - A containing one format item. - The argument to format. + Log message. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified parameters. - The log level. + A containing format items. + Arguments to format. + + + + Writes the diagnostic message at the Info level using the specified parameter and formatting it with the supplied format provider. + + The type of the argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified parameter. - The log level. + The type of the argument. A containing one format item. The argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider. - The log level. + The type of the first argument. + The type of the second argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified parameters. - The log level. + The type of the first argument. + The type of the second argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified arguments formatting it with the supplied format provider. - The log level. + The type of the first argument. + The type of the second argument. + The type of the third argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified parameters. - The log level. + The type of the first argument. + The type of the second argument. + The type of the third argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + + + Writes the diagnostic message at the Warn level using the specified format provider and format parameters. + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + Type of the value. + The value to be written. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Warn level. - The log level. - A containing one format item. - The argument to format. + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level. - The log level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message and exception at the Warn level. - The log level. - A containing one format item. - The argument to format. + A to be written. + An exception to be logged. - + - Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified parameters and formatting them with the supplied format provider. - The log level. An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the specified level using the specified value as a parameter. + Writes the diagnostic message at the Warn level. - The log level. - A containing one format item. - The argument to format. + Log message. - + - Writes the diagnostic message at the Trace level. + Writes the diagnostic message at the Warn level using the specified parameters. - A to be written. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the Trace level. + Writes the diagnostic message at the Warn level using the specified parameter and formatting it with the supplied format provider. + The type of the argument. An IFormatProvider that supplies culture-specific formatting information. - A to be written. + A containing one format item. + The argument to format. - + - Writes the diagnostic message at the Trace level using the specified parameters. - - A containing format items. - First argument to format. - Second argument to format. - - - - Writes the diagnostic message at the Trace level using the specified parameters. + Writes the diagnostic message at the Warn level using the specified parameter. - A containing format items. - First argument to format. - Second argument to format. - Third argument to format. + The type of the argument. + A containing one format item. + The argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider. + The type of the first argument. + The type of the second argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified parameters. + The type of the first argument. + The type of the second argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified arguments formatting it with the supplied format provider. + The type of the first argument. + The type of the second argument. + The type of the third argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified parameters. + The type of the first argument. + The type of the second argument. + The type of the third argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + + + Writes the diagnostic message at the Error level using the specified format provider and format parameters. + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + Type of the value. + The value to be written. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Error level. - A containing one format item. - The argument to format. + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message and exception at the Error level. - A containing one format item. - The argument to format. + A to be written. + An exception to be logged. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level using the specified parameters and formatting them with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Error level. - A containing one format item. - The argument to format. + Log message. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message at the Error level using the specified parameter and formatting it with the supplied format provider. + The type of the argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Error level using the specified parameter. + The type of the argument. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider. + The type of the first argument. + The type of the second argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Error level using the specified parameters. + The type of the first argument. + The type of the second argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Error level using the specified arguments formatting it with the supplied format provider. + The type of the first argument. + The type of the second argument. + The type of the third argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Error level using the specified parameters. + The type of the first argument. + The type of the second argument. + The type of the third argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. + The third argument to format. - + + + Writes the diagnostic message at the Fatal level using the specified format provider and format parameters. + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Fatal level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + Type of the value. + The value to be written. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Fatal level. - A containing one format item. - The argument to format. + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Fatal level. - An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A function returning message to be written. Function is not evaluated if logging is not enabled. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message and exception at the Fatal level. - A containing one format item. - The argument to format. + A to be written. + An exception to be logged. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Fatal level using the specified parameters and formatting them with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. - A containing one format item. - The argument to format. + A containing format items. + Arguments to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Fatal level. - A containing one format item. - The argument to format. + Log message. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Fatal level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message at the Fatal level using the specified parameter and formatting it with the supplied format provider. + The type of the argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Fatal level using the specified parameter. + The type of the argument. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider. + The type of the first argument. + The type of the second argument. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Trace level using the specified value as a parameter. + Writes the diagnostic message at the Fatal level using the specified parameters. + The type of the first argument. + The type of the second argument. A containing one format item. - The argument to format. + The first argument to format. + The second argument to format. - + - Writes the diagnostic message at the Debug level. + Writes the diagnostic message at the Fatal level using the specified arguments formatting it with the supplied format provider. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The first argument to format. + The second argument to format. + The third argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified parameters. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + A containing one format item. + The first argument to format. + The second argument to format. + The third argument to format. + + + + Writes the diagnostic message at the specified level. + The log level. A to be written. - + - Writes the diagnostic message at the Debug level. + Writes the diagnostic message at the specified level. + The log level. An IFormatProvider that supplies culture-specific formatting information. A to be written. - + - Writes the diagnostic message at the Debug level using the specified parameters. + Writes the diagnostic message at the specified level using the specified parameters. + The log level. A containing format items. First argument to format. Second argument to format. - + - Writes the diagnostic message at the Debug level using the specified parameters. + Writes the diagnostic message at the specified level using the specified parameters. + The log level. A containing format items. First argument to format. Second argument to format. Third argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the specified level using the specified value as a parameter and formatting it with the supplied format provider. + The log level. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Debug level using the specified value as a parameter. + Writes the diagnostic message at the specified level using the specified value as a parameter. + The log level. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level. + Writes the diagnostic message at the Trace level. A to be written. - + - Writes the diagnostic message at the Info level. + Writes the diagnostic message at the Trace level. An IFormatProvider that supplies culture-specific formatting information. A to be written. - + - Writes the diagnostic message at the Info level using the specified parameters. + Writes the diagnostic message at the Trace level using the specified parameters. A containing format items. First argument to format. Second argument to format. - + - Writes the diagnostic message at the Info level using the specified parameters. + Writes the diagnostic message at the Trace level using the specified parameters. A containing format items. First argument to format. Second argument to format. Third argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Trace level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Info level using the specified value as a parameter. + Writes the diagnostic message at the Trace level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level. + Writes the diagnostic message at the Debug level. A to be written. - + - Writes the diagnostic message at the Warn level. + Writes the diagnostic message at the Debug level. An IFormatProvider that supplies culture-specific formatting information. A to be written. - + - Writes the diagnostic message at the Warn level using the specified parameters. + Writes the diagnostic message at the Debug level using the specified parameters. A containing format items. First argument to format. Second argument to format. - + - Writes the diagnostic message at the Warn level using the specified parameters. + Writes the diagnostic message at the Debug level using the specified parameters. A containing format items. First argument to format. Second argument to format. Third argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Debug level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Warn level using the specified value as a parameter. + Writes the diagnostic message at the Debug level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level. + Writes the diagnostic message at the Info level. A to be written. - + - Writes the diagnostic message at the Error level. + Writes the diagnostic message at the Info level. An IFormatProvider that supplies culture-specific formatting information. A to be written. - + - Writes the diagnostic message at the Error level using the specified parameters. + Writes the diagnostic message at the Info level using the specified parameters. A containing format items. First argument to format. Second argument to format. - + - Writes the diagnostic message at the Error level using the specified parameters. + Writes the diagnostic message at the Info level using the specified parameters. A containing format items. First argument to format. Second argument to format. Third argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Info level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Error level using the specified value as a parameter. + Writes the diagnostic message at the Info level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Warn level. A to be written. - + - Writes the diagnostic message at the Fatal level. + Writes the diagnostic message at the Warn level. An IFormatProvider that supplies culture-specific formatting information. A to be written. - + - Writes the diagnostic message at the Fatal level using the specified parameters. + Writes the diagnostic message at the Warn level using the specified parameters. A containing format items. First argument to format. Second argument to format. - + - Writes the diagnostic message at the Fatal level using the specified parameters. + Writes the diagnostic message at the Warn level using the specified parameters. A containing format items. First argument to format. Second argument to format. Third argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + Writes the diagnostic message at the Warn level using the specified value as a parameter and formatting it with the supplied format provider. An IFormatProvider that supplies culture-specific formatting information. A containing one format item. The argument to format. - + - Writes the diagnostic message at the Fatal level using the specified value as a parameter. + Writes the diagnostic message at the Warn level using the specified value as a parameter. A containing one format item. The argument to format. - + - Occurs when logger configuration changes. + Writes the diagnostic message at the Error level. + A to be written. - + - Gets the name of the logger. + Writes the diagnostic message at the Error level. + An IFormatProvider that supplies culture-specific formatting information. + A to be written. - + - Gets the factory that created this logger. + Writes the diagnostic message at the Error level using the specified parameters. + A containing format items. + First argument to format. + Second argument to format. - + - Gets a value indicating whether logging is enabled for the Trace level. + Writes the diagnostic message at the Error level using the specified parameters. - A value of if logging is enabled for the Trace level, otherwise it returns . + A containing format items. + First argument to format. + Second argument to format. + Third argument to format. - + - Gets a value indicating whether logging is enabled for the Debug level. + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. - A value of if logging is enabled for the Debug level, otherwise it returns . + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. - + - Gets a value indicating whether logging is enabled for the Info level. + Writes the diagnostic message at the Error level using the specified value as a parameter. - A value of if logging is enabled for the Info level, otherwise it returns . + A containing one format item. + The argument to format. - + - Gets a value indicating whether logging is enabled for the Warn level. + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. - A value of if logging is enabled for the Warn level, otherwise it returns . + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. - + - Gets a value indicating whether logging is enabled for the Error level. + Writes the diagnostic message at the Error level using the specified value as a parameter. - A value of if logging is enabled for the Error level, otherwise it returns . + A containing one format item. + The argument to format. - + - Gets a value indicating whether logging is enabled for the Fatal level. + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. - A value of if logging is enabled for the Fatal level, otherwise it returns . + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. - + - Implementation of logging engine. + Writes the diagnostic message at the Error level using the specified value as a parameter. + A containing one format item. + The argument to format. - + - Gets the filter result. + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. - The filter chain. - The log event. - The result of the filter. + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. - + - Defines available log levels. + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Error level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level. + + A to be written. + + + + Writes the diagnostic message at the Fatal level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + + + + Writes the diagnostic message at the Fatal level using the specified parameters. + + A containing format items. + First argument to format. + Second argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified parameters. + + A containing format items. + First argument to format. + Second argument to format. + Third argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter and formatting it with the supplied format provider. + + An IFormatProvider that supplies culture-specific formatting information. + A containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Fatal level using the specified value as a parameter. + + A containing one format item. + The argument to format. + + + + Occurs when logger configuration changes. + + + + + Gets the name of the logger. + + + + + Gets the factory that created this logger. + + + + + Gets a value indicating whether logging is enabled for the Trace level. + + A value of if logging is enabled for the Trace level, otherwise it returns . + + + + Gets a value indicating whether logging is enabled for the Debug level. + + A value of if logging is enabled for the Debug level, otherwise it returns . + + + + Gets a value indicating whether logging is enabled for the Info level. + + A value of if logging is enabled for the Info level, otherwise it returns . + + + + Gets a value indicating whether logging is enabled for the Warn level. + + A value of if logging is enabled for the Warn level, otherwise it returns . + + + + Gets a value indicating whether logging is enabled for the Error level. + + A value of if logging is enabled for the Error level, otherwise it returns . + + + + Gets a value indicating whether logging is enabled for the Fatal level. + + A value of if logging is enabled for the Fatal level, otherwise it returns . + + + + Implementation of logging engine. + + + + + Gets the filter result. + + The filter chain. + The log event. + The result of the filter. + + + + Defines available log levels. + + + + + Trace log level. + + + + + Debug log level. + + + + + Info log level. + + + + + Warn log level. + + + + + Error log level. + + + + + Fatal log level. + + + + + Off log level. + + + + + Compares two objects + and returns a value indicating whether + the first one is equal to the second one. + + The first level. + The second level. + The value of level1.Ordinal == level2.Ordinal. + + + + Compares two objects + and returns a value indicating whether + the first one is not equal to the second one. + + The first level. + The second level. + The value of level1.Ordinal != level2.Ordinal. + + + + Compares two objects + and returns a value indicating whether + the first one is greater than the second one. + + The first level. + The second level. + The value of level1.Ordinal > level2.Ordinal. + + + + Compares two objects + and returns a value indicating whether + the first one is greater than or equal to the second one. + + The first level. + The second level. + The value of level1.Ordinal >= level2.Ordinal. + + + + Compares two objects + and returns a value indicating whether + the first one is less than the second one. + + The first level. + The second level. + The value of level1.Ordinal < level2.Ordinal. + + + + Compares two objects + and returns a value indicating whether + the first one is less than or equal to the second one. + + The first level. + The second level. + The value of level1.Ordinal <= level2.Ordinal. + + + + Gets the that corresponds to the specified ordinal. + + The ordinal. + The instance. For 0 it returns , 1 gives and so on. + + + + Returns the that corresponds to the supplied . + + The texual representation of the log level. + The enumeration value. + + + + Returns a string representation of the log level. + + Log level name. + + + + Returns a hash code for this instance. + + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + + + Determines whether the specified is equal to this instance. + + The to compare with this instance. + + Value of true if the specified is equal to this instance; otherwise, false. + + + The parameter is null. + + + + + Compares the level to the other object. + + + The object object. + + + A value less than zero when this logger's is + less than the other logger's ordinal, 0 when they are equal and + greater than zero when this ordinal is greater than the + other ordinal. + + + + + Gets the name of the log level. + + + + + Gets the ordinal of the log level. + + + + + Creates and manages instances of objects. + + + + + Initializes static members of the LogManager class. + + + + + Prevents a default instance of the LogManager class from being created. + + + + + Gets the logger named after the currently-being-initialized class. + + The logger. + This is a slow-running method. + Make sure you're not doing this in a loop. + + + + Gets the logger named after the currently-being-initialized class. + + The logger class. The class must inherit from . + The logger. + This is a slow-running method. + Make sure you're not doing this in a loop. + + + + Creates a logger that discards all log messages. + + Null logger which discards all log messages. + + + + Gets the specified named logger. + + Name of the logger. + The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. + + + + Gets the specified named logger. + + Name of the logger. + The logger class. The class must inherit from . + The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. + + + + Loops through all loggers previously returned by GetLogger. + and recalculates their target and filter list. Useful after modifying the configuration programmatically + to ensure that all loggers have been properly configured. + + + + + Flush any pending log messages (in case of asynchronous targets). + + + + + Flush any pending log messages (in case of asynchronous targets). + + Maximum time to allow for the flush. Any messages after that time will be discarded. + + + + Flush any pending log messages (in case of asynchronous targets). + + Maximum time to allow for the flush. Any messages after that time will be discarded. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + Maximum time to allow for the flush. Any messages after that time will be discarded. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + Maximum time to allow for the flush. Any messages after that time will be discarded. + + + Decreases the log enable counter and if it reaches -1 + the logs are disabled. + Logging is enabled if the number of calls is greater + than or equal to calls. + An object that iplements IDisposable whose Dispose() method + reenables logging. To be used with C# using () statement. + + + Increases the log enable counter and if it reaches 0 the logs are disabled. + Logging is enabled if the number of calls is greater + than or equal to calls. + + + + Returns if logging is currently enabled. + + A value of if logging is currently enabled, + otherwise. + Logging is enabled if the number of calls is greater + than or equal to calls. + + + + Occurs when logging changes. + + + + + Occurs when logging gets reloaded. + + + + + Gets or sets a value indicating whether NLog should throw exceptions. + By default exceptions are not thrown under any circumstances. + + + + + Gets or sets the current logging configuration. + + + + + Gets or sets the global log threshold. Log events below this threshold are not logged. + + + + + Returns a log message. Used to defer calculation of + the log message until it's actually needed. + + Log message. + + + + Service contract for Log Receiver client. + + + + + Begins processing of log messages. + + The events. + The callback. + Asynchronous state. + + IAsyncResult value which can be passed to . + + + + + Ends asynchronous processing of log messages. + + The result. + + + + Log Receiver Client Channel. + + + + + Service contract for Log Receiver server. + + + + + Processes the log messages. + + The events. + + + + Internal configuration of Log Receiver Service contracts. + + + + + Wire format for NLog Event. + + + + + Initializes a new instance of the class. + + + + + Converts the to . + + The object this is part of.. + The logger name prefix to prepend in front of the logger name. + Converted . + + + + Gets or sets the client-generated identifier of the event. + + + + + Gets or sets the ordinal of the log level. + + + + + Gets or sets the logger ordinal (index into . + + The logger ordinal. + + + + Gets or sets the time delta (in ticks) between the time of the event and base time. + + + + + Gets or sets the message string index. + + + + + Gets or sets the collection of layout values. + + + + + Gets the collection of indexes into array for each layout value. + + + + + Wire format for NLog event package. + + + + + Converts the events to sequence of objects suitable for routing through NLog. + + The logger name prefix to prepend in front of each logger name. + + Sequence of objects. + + + + + Converts the events to sequence of objects suitable for routing through NLog. + + + Sequence of objects. + + + + + Gets or sets the name of the client. + + The name of the client. + + + + Gets or sets the base time (UTC ticks) for all events in the package. + + The base time UTC. + + + + Gets or sets the collection of layout names which are shared among all events. + + The layout names. + + + + Gets or sets the collection of logger names. + + The logger names. + + + + Gets or sets the list of events. + + The events. + + + + List of strings annotated for more terse serialization. + + + + + Initializes a new instance of the class. + + + + + Log Receiver Client using WCF. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the endpoint configuration. + + + + Initializes a new instance of the class. + + Name of the endpoint configuration. + The remote address. + + + + Initializes a new instance of the class. + + Name of the endpoint configuration. + The remote address. + + + + Initializes a new instance of the class. + + The binding. + The remote address. + + + + Opens the client asynchronously. + + + + + Opens the client asynchronously. + + User-specific state. + + + + Closes the client asynchronously. + + + + + Closes the client asynchronously. + + User-specific state. + + + + Processes the log messages asynchronously. + + The events to send. + + + + Processes the log messages asynchronously. + + The events to send. + User-specific state. + + + + Begins processing of log messages. + + The events to send. + The callback. + Asynchronous state. + + IAsyncResult value which can be passed to . + + + + + Ends asynchronous processing of log messages. + + The result. + + + + Occurs when the log message processing has completed. + + + + + Occurs when Open operation has completed. + + + + + Occurs when Close operation has completed. + + + + + Mapped Diagnostics Context - a thread-local structure that keeps a dictionary + of strings and provides methods to output them in layouts. + Mostly for compatibility with log4net. + + + + + Sets the current thread MDC item to the specified value. + + Item name. + Item value. + + + + Gets the current thread MDC named item. + + Item name. + The item value of String.Empty if the value is not present. + + + + Checks whether the specified item exists in current thread MDC. + + Item name. + A boolean indicating whether the specified item exists in current thread MDC. + + + + Removes the specified item from current thread MDC. + + Item name. + + + + Clears the content of current thread MDC. + + + + + Mapped Diagnostics Context - used for log4net compatibility. + + + + + Sets the current thread MDC item to the specified value. + + Item name. + Item value. + + + + Gets the current thread MDC named item. + + Item name. + The item value of String.Empty if the value is not present. + + + + Checks whether the specified item exists in current thread MDC. + + Item name. + A boolean indicating whether the specified item exists in current thread MDC. + + + + Removes the specified item from current thread MDC. + + Item name. + + + + Clears the content of current thread MDC. + + + + + Nested Diagnostics Context - for log4net compatibility. + + + + + Pushes the specified text on current thread NDC. + + The text to be pushed. + An instance of the object that implements IDisposable that returns the stack to the previous level when IDisposable.Dispose() is called. To be used with C# using() statement. + + + + Pops the top message off the NDC stack. + + The top message which is no longer on the stack. + + + + Clears current thread NDC stack. + + + + + Gets all messages on the stack. + + Array of strings on the stack. + + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Nested Diagnostics Context - a thread-local structure that keeps a stack + of strings and provides methods to output them in layouts + Mostly for compatibility with log4net. + + + + + Pushes the specified text on current thread NDC. + + The text to be pushed. + An instance of the object that implements IDisposable that returns the stack to the previous level when IDisposable.Dispose() is called. To be used with C# using() statement. + + + + Pops the top message off the NDC stack. + + The top message which is no longer on the stack. + + + + Clears current thread NDC stack. + + + + + Gets all messages on the stack. + + Array of strings on the stack. + + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Resets the stack to the original count during . + + + + + Initializes a new instance of the class. + + The stack. + The previous count. + + + + Reverts the stack to original item count. + + + + + Exception thrown during NLog configuration. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The message. + + + + Initializes a new instance of the class. + + The message. + The inner exception. + + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + The parameter is null. + + + The class name is null or is zero (0). + + + + + Exception thrown during log event processing. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The message. + + + + Initializes a new instance of the class. + + The message. + The inner exception. + + + + Initializes a new instance of the class. + + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + + The parameter is null. + + + The class name is null or is zero (0). + + + + + TraceListener which routes all messages through NLog. + + + + + Initializes a new instance of the class. + + + + + When overridden in a derived class, writes the specified message to the listener you create in the derived class. + + A message to write. + + + + When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator. + + A message to write. + + + + When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output. + + + + + Emits an error message. + + A message to emit. + + + + Emits an error message and a detailed error message. + + A message to emit. + A detailed message to emit. + + + + Flushes the output buffer. + + + + + Writes trace information, a data object and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + One of the values specifying the type of event that has caused the trace. + A numeric identifier for the event. + The trace data to emit. + + + + Writes trace information, an array of data objects and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + One of the values specifying the type of event that has caused the trace. + A numeric identifier for the event. + An array of objects to emit as data. + + + + Writes trace and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + One of the values specifying the type of event that has caused the trace. + A numeric identifier for the event. + + + + Writes trace information, a formatted array of objects and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + One of the values specifying the type of event that has caused the trace. + A numeric identifier for the event. + A format string that contains zero or more format items, which correspond to objects in the array. + An object array containing zero or more objects to format. + + + + Writes trace information, a message, and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + One of the values specifying the type of event that has caused the trace. + A numeric identifier for the event. + A message to write. + + + + Writes trace information, a message, a related activity identity and event information to the listener specific output. + + A object that contains the current process ID, thread ID, and stack trace information. + A name used to identify the output, typically the name of the application that generated the trace event. + A numeric identifier for the event. + A message to write. + A object identifying a related activity. + + + + Gets the custom attributes supported by the trace listener. + + + A string array naming the custom attributes supported by the trace listener, or null if there are no custom attributes. + + + + + Translates the event type to level from . + + Type of the event. + Translated log level. + + + + Gets or sets the log factory to use when outputting messages (null - use LogManager). + + + + + Gets or sets the default log level. + + + + + Gets or sets the log which should be always used regardless of source level. + + + + + Gets a value indicating whether the trace listener is thread safe. + + + true if the trace listener is thread safe; otherwise, false. The default is false. + + + + Gets or sets a value indicating whether to use auto logger name detected from the stack trace. + + + + + Specifies the way archive numbering is performed. + + + + + Sequence style numbering. The most recent archive has the highest number. + + + + + Rolling style numbering (the most recent is always #0 then #1, ..., #N. + + + + + Outputs log messages through the ASP Response object. + + Documentation on NLog Wiki + + + + Represents target that supports string formatting using layouts. + + + + + Represents logging target. + + + + + Initializes this instance. + + The configuration. + + + + Closes this instance. + + + + + Closes the target. + + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + + + + Calls the on each volatile layout + used by this target. + + + The log event. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Writes the log to the target. + + Log event to write. + + + + Writes the array of log events. + + The log events. + + + + Initializes this instance. + + The configuration. + + + + Closes this instance. + + + + + Releases unmanaged and - optionally - managed resources. + + True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Initializes the target. Can be used by inheriting classes + to initialize logging. + + + + + Closes the target and releases any unmanaged resources. + + + + + Flush any pending log messages asynchronously (in case of asynchronous targets). + + The asynchronous continuation. + + + + Writes logging event to the log target. + classes. + + + Logging event to be written out. + + + + + Writes log event to the log target. Must be overridden in inheriting + classes. + + Log event to be written out. + + + + 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. + + Logging events to be written out. + + + + Gets or sets the name of the target. + + + + + + Gets the object which can be used to synchronize asynchronous operations that must rely on the . + + + + + Gets the logging configuration this target is part of. + + + + + Gets a value indicating whether the target has been initialized. + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Gets or sets the layout used to format log messages. + + + + + + Outputs the rendered logging event through the OutputDebugString() Win32 API. + + The logging event. + + + + Gets or sets a value indicating whether to add <!-- --> comments around all written texts. + + + + + + Sends log messages to the remote instance of Chainsaw application from log4j. + + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +

+ NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol + or you'll get TCP timeouts and your application will crawl. + Either switch to UDP transport or use AsyncWrapper target + so that your application threads will not be blocked by the timing-out connection attempts. +

+
+
+ + + Sends log messages to the remote instance of NLog Viewer. + + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +

+ NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol + or you'll get TCP timeouts and your application will crawl. + Either switch to UDP transport or use AsyncWrapper target + so that your application threads will not be blocked by the timing-out connection attempts. +

+
+
+ + + Sends log messages over the network. + + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +

+ To print the results, use any application that's able to receive messages over + TCP or UDP. NetCat is + a simple but very powerful command-line tool that can be used for that. This image + demonstrates the NetCat tool receiving log messages from Network target. +

+ +

+ NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol + or you'll get TCP timeouts and your application will crawl. + Either switch to UDP transport or use AsyncWrapper target + so that your application threads will not be blocked by the timing-out connection attempts. +

+

+ There are two specialized versions of the Network target: Chainsaw + and NLogViewer which write to instances of Chainsaw log4j viewer + or NLogViewer application respectively. +

+
- + - Trace log level. + Initializes a new instance of the class. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Debug log level. + Flush any pending log messages asynchronously (in case of asynchronous targets). + The asynchronous continuation. - + - Info log level. + Closes the target. - + - Warn log level. + Sends the + rendered logging event over the network optionally concatenating it with a newline character. + The logging event. - + - Error log level. + Gets the bytes to be written. + Log event. + Byte array. - + - Fatal log level. + Gets or sets the network address. + + The network address can be: +
    +
  • tcp://host:port - TCP (auto select IPv4/IPv6)
  • +
  • tcp4://host:port - force TCP/IPv4
  • +
  • tcp6://host:port - force TCP/IPv6
  • +
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight)
  • +
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight)
  • +
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight)
  • +
+ For HTTP Support use WebService target. +
+
- + - Off log level. + Gets or sets a value indicating whether to keep connection open whenever possible. + - + - Compares two objects - and returns a value indicating whether - the first one is equal to the second one. + Gets or sets a value indicating whether to append newline at the end of log message. - The first level. - The second level. - The value of level1.Ordinal == level2.Ordinal. + - + - Compares two objects - and returns a value indicating whether - the first one is not equal to the second one. + Gets or sets the maximum message size in bytes. - The first level. - The second level. - The value of level1.Ordinal != level2.Ordinal. + - + - Compares two objects - and returns a value indicating whether - the first one is greater than the second one. + Gets or sets the size of the connection cache (number of connections which are kept alive). - The first level. - The second level. - The value of level1.Ordinal > level2.Ordinal. + - + - Compares two objects - and returns a value indicating whether - the first one is greater than or equal to the second one. + Gets or sets the action that should be taken if the message is larger than + maxMessageSize. - The first level. - The second level. - The value of level1.Ordinal >= level2.Ordinal. + - + - Compares two objects - and returns a value indicating whether - the first one is less than the second one. + Gets or sets the encoding to be used. - The first level. - The second level. - The value of level1.Ordinal < level2.Ordinal. + - + - Compares two objects - and returns a value indicating whether - the first one is less than or equal to the second one. + Initializes a new instance of the class. - The first level. - The second level. - The value of level1.Ordinal <= level2.Ordinal. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Gets the that corresponds to the specified ordinal. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. - The ordinal. - The instance. For 0 it returns , 1 gives and so on. + - + - Returns the that corresponds to the supplied . + Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. - The texual representation of the log level. - The enumeration value. + - + - Returns a string representation of the log level. + Gets or sets a value indicating whether to include call site (class and method name) in the information sent over the network. - Log level name. + - + - Returns a hash code for this instance. + Gets or sets a value indicating whether to include source info (file name and line number) in the information sent over the network. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - + - + - Determines whether the specified is equal to this instance. + Gets or sets a value indicating whether to include dictionary contents. - The to compare with this instance. - - Value of true if the specified is equal to this instance; otherwise, false. - - - The parameter is null. - + - + - Compares the level to the other object. + Gets or sets a value indicating whether to include stack contents. - - The object object. - - - A value less than zero when this logger's is - less than the other logger's ordinal, 0 when they are equal and - greater than zero when this ordinal is greater than the - other ordinal. - + - + - Gets the name of the log level. + Gets the collection of parameters. Each parameter contains a mapping + between NLog layout and a named parameter. + - + - Gets the ordinal of the log level. + Gets the layout renderer which produces Log4j-compatible XML events. - + - Creates and manages instances of objects. + Gets or sets the instance of that is used to format log messages. - + - Prevents a default instance of the LogManager class from being created. + Initializes a new instance of the class. - + - Creates a logger that discards all log messages. + Writes log messages to the console with customizable coloring. - Null logger which discards all log messages. + Documentation on NLog Wiki - + - Gets the specified named logger. + Represents target that supports string formatting using layouts. - Name of the logger. - The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. - + - Gets the specified named logger. + Initializes a new instance of the class. - Name of the logger. - The logger class. The class must inherit from . - The logger reference. Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Loops through all loggers previously returned by GetLogger. - and recalculates their target and filter list. Useful after modifying the configuration programmatically - to ensure that all loggers have been properly configured. + Gets or sets the text to be rendered. + - + - Flush any pending log messages (in case of asynchronous targets). + Gets or sets the footer. + - + - Flush any pending log messages (in case of asynchronous targets). + Gets or sets the header. - Maximum time to allow for the flush. Any messages after that time will be discarded. + - + - Flush any pending log messages (in case of asynchronous targets). + Gets or sets the layout with header and footer. - Maximum time to allow for the flush. Any messages after that time will be discarded. + The layout with header and footer. - + - Flush any pending log messages (in case of asynchronous targets). + Initializes a new instance of the class. - The asynchronous continuation. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Flush any pending log messages (in case of asynchronous targets). + Initializes the target. - The asynchronous continuation. - Maximum time to allow for the flush. Any messages after that time will be discarded. - + - Flush any pending log messages (in case of asynchronous targets). - - The asynchronous continuation. - Maximum time to allow for the flush. Any messages after that time will be discarded. - - - Decreases the log enable counter and if it reaches -1 - the logs are disabled. - Logging is enabled if the number of calls is greater - than or equal to calls. - An object that iplements IDisposable whose Dispose() method - reenables logging. To be used with C# using () statement. + Closes the target and releases any unmanaged resources. +
- - Increases the log enable counter and if it reaches 0 the logs are disabled. - Logging is enabled if the number of calls is greater - than or equal to calls. + + + Writes the specified log event to the console highlighting entries + and words based on a set of defined rules. + + Log event. - + - Returns if logging is currently enabled. + Gets or sets a value indicating whether the error stream (stderr) should be used instead of the output stream (stdout). - A value of if logging is currently enabled, - otherwise. - Logging is enabled if the number of calls is greater - than or equal to calls. + - + - Occurs when logging changes. + Gets or sets a value indicating whether to use default row highlighting rules. + + The default rules are: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ConditionForeground ColorBackground Color
level == LogLevel.FatalRedNoChange
level == LogLevel.ErrorYellowNoChange
level == LogLevel.WarnMagentaNoChange
level == LogLevel.InfoWhiteNoChange
level == LogLevel.DebugGrayNoChange
level == LogLevel.TraceDarkGrayNoChange
+
+
- + - Gets or sets a value indicating whether NLog should throw exceptions. - By default exceptions are not thrown under any circumstances. + Gets the row highlighting rules. + - + - Gets or sets the current logging configuration. + Gets the word highlighting rules. + - + - Gets or sets the global log threshold. Log events below this threshold are not logged. + Color pair (foreground and background). - + - Returns a log message. Used to defer calculation of - the log message until it's actually needed. + Colored console output color. - Log message. + + Note that this enumeration is defined to be binary compatible with + .NET 2.0 System.ConsoleColor + some additions + - + - Service contract for Log Receiver client. + Black Color (#000000). - + - Begins processing of log messages. + Dark blue Color (#000080). - The events. - The callback. - Asynchronous state. - - IAsyncResult value which can be passed to . - - + - Ends asynchronous processing of log messages. + Dark green Color (#008000). - The result. - + - Internal configuration of Log Receiver Service contracts. + Dark Cyan Color (#008080). - + - Wire format for NLog Event. + Dark Red Color (#800000). - + - Initializes a new instance of the class. + Dark Magenta Color (#800080). - + - Converts the to . + Dark Yellow Color (#808000). - The object this is part of.. - The logger name prefix to prepend in front of the logger name. - Converted . - + - Gets or sets the client-generated identifier of the event. + Gray Color (#C0C0C0). - + - Gets or sets the ordinal of the log level. + Dark Gray Color (#808080). - + - Gets or sets the logger ordinal (index into . + Blue Color (#0000FF). - The logger ordinal. - + - Gets or sets the time delta (in ticks) between the time of the event and base time. + Green Color (#00FF00). - + - Gets or sets the message string index. + Cyan Color (#00FFFF). - + - Gets or sets the collection of layout values. + Red Color (#FF0000). - + - Gets the collection of indexes into array for each layout value. + Magenta Color (#FF00FF). - + - Wire format for NLog event package. + Yellow Color (#FFFF00). - + - Converts the events to sequence of objects suitable for routing through NLog. + White Color (#FFFFFF). - The logger name prefix to prepend in front of each logger name. - - Sequence of objects. - - + - Converts the events to sequence of objects suitable for routing through NLog. + Don't change the color. - - Sequence of objects. - - + - Gets or sets the name of the client. + The row-highlighting condition. - The name of the client. - + - Gets or sets the base time (UTC ticks) for all events in the package. + Initializes static members of the ConsoleRowHighlightingRule class. - The base time UTC. - + - Gets or sets the collection of layout names which are shared among all events. + Initializes a new instance of the class. - The layout names. - + - Gets or sets the collection of logger names. + Initializes a new instance of the class. - The logger names. + The condition. + Color of the foreground. + Color of the background. - + - Gets or sets the list of events. + Checks whether the specified log event matches the condition (if any). - The events. + + Log event. + + + A value of if the condition is not defined or + if it matches, otherwise. + - + - Log Receiver Client using legacy SOAP client. + Gets the default highlighting rule. Doesn't change the color. - + - Initializes a new instance of the class. + Gets or sets the condition that must be met in order to set the specified foreground and background color. - The service URL. + - + - Processes the log messages. + Gets or sets the foreground color. - The events. + - + - Begins processing of log messages. + Gets or sets the background color. - The events. - The callback. - Asynchronous state. - - IAsyncResult value which can be passed to . - + - + - Ends asynchronous processing of log messages. + Writes log messages to the console. - The result. + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- + - List of strings annotated for more terse serialization. + Initializes the target. - + - Initializes a new instance of the class. + Closes the target and releases any unmanaged resources. - + - Mapped Diagnostics Context - a thread-local structure that keeps a dictionary - of strings and provides methods to output them in layouts. - Mostly for compatibility with log4net. + Writes the specified logging event to the Console.Out or + Console.Error depending on the value of the Error flag. + The logging event. + + Note that the Error option is not supported on .NET Compact Framework. + - + - Sets the current thread MDC item to the specified value. + Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output. - Item name. - Item value. + - + - Gets the current thread MDC named item. + Highlighting rule for Win32 colorful console. - Item name. - The item value of String.Empty if the value is not present. - + - Checks whether the specified item exists in current thread MDC. + Initializes a new instance of the class. - Item name. - A boolean indicating whether the specified item exists in current thread MDC. - + - Removes the specified item from current thread MDC. + Initializes a new instance of the class. - Item name. + The text to be matched.. + Color of the foreground. + Color of the background. - + - Clears the content of current thread MDC. + Gets or sets the regular expression to be matched. You must specify either text or regex. + - + - Mapped Diagnostics Context - used for log4net compatibility. + Gets or sets the text to be matched. You must specify either text or regex. + - + - Sets the current thread MDC item to the specified value. + Gets or sets a value indicating whether to match whole words only. - Item name. - Item value. + - + - Gets the current thread MDC named item. + Gets or sets a value indicating whether to ignore case when comparing texts. - Item name. - The item value of String.Empty if the value is not present. + - + - Checks whether the specified item exists in current thread MDC. + Gets the compiled regular expression that matches either Text or Regex property. - Item name. - A boolean indicating whether the specified item exists in current thread MDC. - + - Removes the specified item from current thread MDC. + Gets or sets the foreground color. - Item name. + - + - Clears the content of current thread MDC. + Gets or sets the background color. + - + - Nested Diagnostics Context - for log4net compatibility. + Information about database command + parameters. - + - Pushes the specified text on current thread NDC. + Initializes a new instance of the class. - The text to be pushed. - An instance of the object that implements IDisposable that returns the stack to the previous level when IDisposable.Dispose() is called. To be used with C# using() statement. - + - Pops the top message off the NDC stack. + Gets or sets the type of the command. - The top message which is no longer on the stack. + The type of the command. + - + - Clears current thread NDC stack. + Gets or sets the connection string to run the command against. If not provided, connection string from the target is used. + - + - Gets all messages on the stack. + Gets or sets the command text. - Array of strings on the stack. + - + - Gets the top NDC message but doesn't remove it. + Gets or sets a value indicating whether to ignore failures. - The top message. . + - + - Nested Diagnostics Context - a thread-local structure that keeps a stack - of strings and provides methods to output them in layouts - Mostly for compatibility with log4net. + Gets the collection of parameters. Each parameter contains a mapping + between NLog layout and a database named or positional parameter. + - + - Pushes the specified text on current thread NDC. + Represents a parameter to a Database target. - The text to be pushed. - An instance of the object that implements IDisposable that returns the stack to the previous level when IDisposable.Dispose() is called. To be used with C# using() statement. - + - Pops the top message off the NDC stack. + Initializes a new instance of the class. - The top message which is no longer on the stack. - + - Clears current thread NDC stack. + Initializes a new instance of the class. + + Name of the parameter. + The parameter layout. + + + + Gets or sets the database parameter name. + - + - Gets all messages on the stack. + Gets or sets the layout that should be use to calcuate the value for the parameter. - Array of strings on the stack. + - + - Gets the top NDC message but doesn't remove it. + Gets or sets the database parameter size. - The top message. . + - + - Resets the stack to the original count during . + Gets or sets the database parameter precision. + - + - Initializes a new instance of the class. + Gets or sets the database parameter scale. - The stack. - The previous count. + - + - Reverts the stack to original item count. + Writes log messages to the database using an ADO.NET provider. + Documentation on NLog Wiki + + + The configuration is dependent on the database type, because + there are differnet methods of specifying connection string, SQL + command and command parameters. + + MS SQL Server using System.Data.SqlClient: + + Oracle using System.Data.OracleClient: + + Oracle using System.Data.OleDBClient: + + To set up the log target programmatically use code like this (an equivalent of MSSQL configuration): + + - + - Exception thrown during NLog configuration. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Performs installation which requires administrative permissions. + The installation context. - + - Initializes a new instance of the class. + Performs uninstallation which requires administrative permissions. - The message. + The installation context. - + - Initializes a new instance of the class. + Determines whether the item is installed. - The message. - The inner exception. + The installation context. + + Value indicating whether the item is installed or null if it is not possible to determine. + - + - Exception thrown during log event processing. + Initializes the target. Can be used by inheriting classes + to initialize logging. - + - Initializes a new instance of the class. + Closes the target and releases any unmanaged resources. - + - Initializes a new instance of the class. + Writes the specified logging event to the database. It creates + a new database command, prepares parameters for it by calculating + layouts and executes the command. - The message. + The logging event. - + - Initializes a new instance of the class. + 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. - The message. - The inner exception. + Logging events to be written out. - + - TraceListener which routes all messages through NLog. + Gets or sets the name of the database provider. + + + The parameter name should be a provider invariant name as registered in machine.config or app.config. Common values are: + +
    +
  • System.Data.SqlClient - SQL Sever Client
  • +
  • System.Data.SqlServerCe.3.5 - SQL Sever Compact 3.5
  • +
  • System.Data.OracleClient - Oracle Client from Microsoft (deprecated in .NET Framework 4)
  • +
  • Oracle.DataAccess.Client - ODP.NET provider from Oracle
  • +
  • System.Data.SQLite - System.Data.SQLite driver for SQLite
  • +
  • Npgsql - Npgsql driver for PostgreSQL
  • +
  • MySql.Data.MySqlClient - MySQL Connector/Net
  • +
+ (Note that provider invariant names are not supported on .NET Compact Framework). + + Alternatively the parameter value can be be a fully qualified name of the provider + connection type (class implementing ) or one of the following tokens: + +
    +
  • sqlserver, mssql, microsoft or msde - SQL Server Data Provider
  • +
  • oledb - OLEDB Data Provider
  • +
  • odbc - ODBC Data Provider
  • +
+
+
- + - Initializes a new instance of the class. + Gets or sets the name of the connection string (as specified in <connectionStrings> configuration section. + - + - When overridden in a derived class, writes the specified message to the listener you create in the derived class. + Gets or sets the connection string. When provided, it overrides the values + specified in DBHost, DBUserName, DBPassword, DBDatabase. - A message to write. + - + - When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator. + Gets or sets the connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used. - A message to write. + - + - When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output. + Gets the installation DDL commands. + - + - Emits an error message. + Gets the uninstallation DDL commands. - A message to emit. + - + - Emits an error message and a detailed error message. + Gets or sets a value indicating whether to keep the + database connection open between the log events. - A message to emit. - A detailed message to emit. + - + - Flushes the output buffer. + Gets or sets a value indicating whether to use database transactions. + Some data providers require this. + - + - Gets or sets the log factory to use when outputting messages (null - use LogManager). + Gets or sets the database host name. If the ConnectionString is not provided + this value will be used to construct the "Server=" part of the + connection string. + - + - Gets or sets the default log level. + Gets or sets 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. + - + - Gets or sets the log which should be always used regardless of source level. + Gets or sets the database password. If the ConnectionString is not provided + this value will be used to construct the "Password=" part of the + connection string. + - + - Specifies the way archive numbering is performed. + Gets or sets the database name. If the ConnectionString is not provided + this value will be used to construct the "Database=" part of the + connection string. + - + - Sequence style numbering. The most recent archive has the highest number. + Gets or sets the text of the SQL command to be run on each log level. + + Typically this is a SQL INSERT statement or a stored procedure call. + It should use the database-specific parameters (marked as @parameter + for SQL server or :parameter for Oracle, other data providers + have their own notation) and not the layout renderers, + because the latter is prone to SQL injection attacks. + The layout renderers should be specified as <parameter /> elements instead. + + - + - Rolling style numbering (the most recent is always #0 then #1, ..., #N. + Gets the collection of parameters. Each parameter contains a mapping + between NLog layout and a database named or positional parameter. + - + - Sends log messages to the remote instance of Chainsaw application from log4j. + Writes log messages to the attached managed debugger. - Documentation on NLog Wiki

To set up the target in the configuration file, use the following syntax:

- +

This assumes just one target and a single rule. More configuration options are described here. @@ -8625,53 +11243,36 @@

To set up the log target programmatically use code like this:

- -

- NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol - or you'll get TCP timeouts and your application will crawl. - Either switch to UDP transport or use AsyncWrapper target - so that your application threads will not be blocked by the timing-out connection attempts. -

+
- + - Sends log messages to the remote instance of NLog Viewer. + Initializes the target. - Documentation on NLog Wiki - -

- To set up the target in the configuration file, - use the following syntax: -

- -

- This assumes just one target and a single rule. More configuration - options are described here. -

-

- To set up the log target programmatically use code like this: -

- -

- NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol - or you'll get TCP timeouts and your application will crawl. - Either switch to UDP transport or use AsyncWrapper target - so that your application threads will not be blocked by the timing-out connection attempts. -

-
- + + + Closes the target and releases any unmanaged resources. + + + + + Writes the specified logging event to the attached debugger. + + The logging event. + + - Sends log messages over the network. + Mock target - useful for testing. - Documentation on NLog Wiki + Documentation on NLog Wiki

To set up the target in the configuration file, use the following syntax:

- +

This assumes just one target and a single rule. More configuration options are described here. @@ -8679,1438 +11280,1530 @@

To set up the log target programmatically use code like this:

- + +
+
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Increases the number of messages. + + The logging event. + + + + Gets the number of times this target has been called. + + + + + + Gets the last message rendered by this target. + + + + + + Writes log message to the Event Log. + + Documentation on NLog Wiki +

- To print the results, use any application that's able to receive messages over - TCP or UDP. NetCat is - a simple but very powerful command-line tool that can be used for that. This image - demonstrates the NetCat tool receiving log messages from Network target. + To set up the target in the configuration file, + use the following syntax:

- +

- NOTE: If your receiver application is ever likely to be off-line, don't use TCP protocol - or you'll get TCP timeouts and your application will crawl. - Either switch to UDP transport or use AsyncWrapper target - so that your application threads will not be blocked by the timing-out connection attempts. + This assumes just one target and a single rule. More configuration + options are described here.

- There are two specialized versions of the Network target: Chainsaw - and NLogViewer which write to instances of Chainsaw log4j viewer - or NLogViewer application respectively. + To set up the log target programmatically use code like this:

+
- + - Represents target that supports string formatting using layouts. + Initializes a new instance of the class. - + - Represents logging target. + Performs installation which requires administrative permissions. + The installation context. - + - Initializes this instance. + Performs uninstallation which requires administrative permissions. - The configuration. + The installation context. - + - Closes this instance. + Determines whether the item is installed. + The installation context. + + Value indicating whether the item is installed or null if it is not possible to determine. + - + - Closes the target. + Initializes the target. - + - Flush any pending log messages (in case of asynchronous targets). + Writes the specified logging event to the event log. - The asynchronous continuation. + The logging event. - + - Calls the on each volatile layout - used by this target. + Gets or sets the name of the machine on which Event Log service is running. - - The log event. - + - + - Returns a that represents this instance. + Gets or sets the layout that renders event ID. - - A that represents this instance. - + - + - Writes the log to the target. + Gets or sets the layout that renders event Category. - Log event to write. + - + - Writes the array of log events. + Gets or sets the value to be used as the event Source. - The log events. + + By default this is the friendly name of the current AppDomain. + + - + - Initializes this instance. + Gets or sets the name of the Event Log to write to. This can be System, Application or + any user-defined name. - The configuration. + - + - Closes this instance. + Modes of archiving files based on time. - + - Releases unmanaged and - optionally - managed resources. + Don't archive based on time. - True to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Initializes the target. Can be used by inheriting classes - to initialize logging. + Archive every year. - + - Closes the target and releases any unmanaged resources. + Archive every month. - + - Flush any pending log messages asynchronously (in case of asynchronous targets). + Archive daily. + + + + + Archive every hour. + + + + + Archive every minute. + + + + + Writes log messages to one or more files. + + Documentation on NLog Wiki + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Removes records of initialized files that have not been + accessed in the last two days. + + + Files are marked 'initialized' for the purpose of writing footers when the logging finishes. + + + + + Removes records of initialized files that have not been + accessed after the specified date. + + The cleanup threshold. + + Files are marked 'initialized' for the purpose of writing footers when the logging finishes. + + + + + Flushes all pending file operations. The asynchronous continuation. + + The timeout parameter is ignored, because file APIs don't provide + the needed functionality. + - + - Writes logging event to the log target. - classes. + Initializes file logging by creating data structures that + enable efficient multi-file logging. - - Logging event to be written out. - - + - Writes log event to the log target. Must be overridden in inheriting - classes. + Closes the file(s) opened for writing. - Log event to be written out. - + - 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. + Writes the specified logging event to a file specified in the FileName + parameter. - Logging events to be written out. + The logging event. - + - Gets or sets the name of the target. + Writes the specified array of logging events to a file specified in the FileName + parameter. - + An array of objects. + + This function makes use of the fact that the events are batched by sorting + the requests by filename. This optimizes the number of open/close calls + and can help improve performance. + - + - Gets the object which can be used to synchronize asynchronous operations that must rely on the . + Formats the log event for write. + The log event to be formatted. + A string representation of the log event. - + - Gets the logging configuration this target is part of. + Gets the bytes to be written to the file. + Log event. + Array of bytes that are ready to be written. - + - Gets a value indicating whether the target has been initialized. + Modifies the specified byte array before it gets sent to a file. + The byte array. + The modified byte array. The function can do the modification in-place. - + - Initializes a new instance of the class. + Gets or sets the name of the file to write to. - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + This FileName string is a layout which may include instances of layout renderers. + This lets you use a single target to write to multiple files. + + The following value makes NLog write logging events to files based on the log level in the directory where + the application runs. + ${basedir}/${level}.log + All Debug messages will go to Debug.log, all Info messages will go to Info.log and so on. + You can combine as many of the layout renderers as you want to produce an arbitrary log file name. + + - + - Gets or sets the layout used to format log messages. + Gets or sets a value indicating whether to create directories if they don't exist. - + + Setting this to false may improve performance a bit, but you'll receive an error + when attempting to write to a directory that's not present. + + - + - Initializes a new instance of the class. + Gets or sets a value indicating whether to delete old log file on startup. - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + This option works only when the "FileName" parameter denotes a single file. + - + - Flush any pending log messages asynchronously (in case of asynchronous targets). + Gets or sets a value indicating whether to replace file contents on each write instead of appending log message at the end. - The asynchronous continuation. + - + - Closes the target. + Gets or sets a value indicating whether to keep log file open instead of opening and closing it on each logging event. + + Setting this property to True helps improve performance. + + - + - Sends the - rendered logging event over the network optionally concatenating it with a newline character. + Gets or sets a value indicating whether to enable log file(s) to be deleted. - The logging event. + - + - Gets the bytes to be written. + Gets or sets the file attributes (Windows only). - Log event. - Byte array. + - + - Gets or sets the network address. + Gets or sets the line ending mode. - - The network address can be: -
    -
  • tcp://host:port - TCP (auto select IPv4/IPv6)
  • -
  • tcp4://host:port - force TCP/IPv4
  • -
  • tcp6://host:port - force TCP/IPv6
  • -
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight)
  • -
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight)
  • -
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight)
  • -
- For HTTP Support use WebService target. -
- +
- + - Gets or sets a value indicating whether to keep connection open whenever possible. + Gets or sets a value indicating whether to automatically flush the file buffers after each log message. - + - + - Gets or sets a value indicating whether to append newline at the end of log message. + Gets or sets 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). - + + The files are managed on a LRU (least recently used) basis, which flushes + the files that have not been used for the longest period of time should the + cache become full. As a rule of thumb, you shouldn't set this parameter to + a very high value. A number like 10-15 shouldn't be exceeded, because you'd + be keeping a large number of files open which consumes system resources. + + - + - Gets or sets the maximum message size in bytes. + Gets or sets the maximum number of seconds that files are kept open. If this number is negative the files are + not automatically closed after a period of inactivity. - + - + - Gets or sets the size of the connection cache (number of connections which are kept alive). + Gets or sets the log file buffer size in bytes. - + - + - Gets or sets the action that should be taken if the message is larger than - maxMessageSize. + Gets or sets the file encoding. - + - Gets or sets the encoding to be used. + Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on the same host. - + + This makes multi-process logging possible. NLog uses a special technique + that lets it keep the files open for writing. + + - + - Initializes a new instance of the class. + Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + This effectively prevents files from being kept open. + - + - Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. + Gets or sets the number of times the write is appended on the file before NLog + discards the log message. - + - + - Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. + Gets or sets the delay in milliseconds to wait before attempting to write to the file again. - + + The actual delay is a random value between 0 and the value specified + in this parameter. On each failed attempt the delay base is doubled + up to times. + + + Assuming that ConcurrentWriteAttemptDelay is 10 the time to wait will be:

+ a random value between 0 and 10 milliseconds - 1st attempt
+ a random value between 0 and 20 milliseconds - 2nd attempt
+ a random value between 0 and 40 milliseconds - 3rd attempt
+ a random value between 0 and 80 milliseconds - 4th attempt
+ ...

+ and so on. + + - +

- Gets or sets a value indicating whether to include dictionary contents. + Gets or sets the size in bytes above which log files will be automatically archived. - + + Caution: Enabling this option can considerably slow down your file + logging in multi-process scenarios. If only one process is going to + be writing to the file, consider setting ConcurrentWrites + to false for maximum performance. + +
- + - Gets or sets a value indicating whether to include stack contents. + Gets or sets a value indicating whether to automatically archive log files every time the specified time passes. - + + 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. +

+ Caution: Enabling this option can considerably slow down your file + logging in multi-process scenarios. If only one process is going to + be writing to the file, consider setting ConcurrentWrites + to false for maximum performance. +

+
+
- + - Gets the collection of parameters. Each parameter contains a mapping - between NLog layout and a named parameter. + Gets or sets 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. + + - + - Gets the layout renderer which produces Log4j-compatible XML events. + Gets or sets the maximum number of archive files that should be kept. + - + - Gets or sets the instance of that is used to format log messages. + Gets or sets the way file archives are numbered. + - + - Initializes a new instance of the class. + Gets the characters that are appended after each line. - + - Writes log messages to the console. + Logs text to Windows.Forms.Control.Text property control of specified Name. - Documentation on NLog Wiki

To set up the target in the configuration file, use the following syntax:

- +

- This assumes just one target and a single rule. More configuration - options are described here. + The result is:

+

- To set up the log target programmatically use code like this: + To set up the log target programmatically similar to above use code like this:

- + ,
- - - Represents target that supports string formatting using layouts. - - - + - Initializes a new instance of the class. + Initializes a new instance of the class. The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - Gets or sets the text to be rendered. - - - - - - Gets or sets the footer. - - - - - - Gets or sets the header. - - - - + - Gets or sets the layout with header and footer. + Log message to control. - The layout with header and footer. + + The logging event. + - + - Initializes the target. + Gets or sets the name of control to which NLog will log write log text. + - + - Closes the target and releases any unmanaged resources. - + Gets or sets a value indicating whether log text should be appended to the text of the control instead of overwriting it.
+
- + - Writes the specified logging event to the Console.Out or - Console.Error depending on the value of the Error flag. + Gets or sets the name of the Form on which the control is located. - The logging event. - - Note that the Error option is not supported on .NET Compact Framework. - + - + - Information about database command + parameters. + Line ending mode. - + - Initializes a new instance of the class. + Insert platform-dependent end-of-line sequence after each line. - + - Gets or sets the type of the command. + Insert CR LF sequence (ASCII 13, ASCII 10) after each line. - The type of the command. - - + - Gets or sets the connection string to run the command against. If not provided, connection string from the target is used. + Insert CR character (ASCII 13) after each line. - - + - Gets or sets the command text. + Insert LF character (ASCII 10) after each line. - - + - Gets or sets a value indicating whether to ignore failures. + Don't insert any line ending. - - + - Gets the collection of parameters. Each parameter contains a mapping - between NLog layout and a database named or positional parameter. + Sends log messages to a NLog Receiver Service (using WCF or Web Services). - + Documentation on NLog Wiki - + - Represents a parameter to a Database target. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Writes logging event to the log target. Must be overridden in inheriting + classes. + Logging event to be written out. - + - Initializes a new instance of the class. + Writes an array of logging events to the log target. By default it iterates on all + events and passes them to "Append" method. Inheriting classes can use this method to + optimize batch writes. - Name of the parameter. - The parameter layout. + Logging events to be written out. - + - Gets or sets the database parameter name. + Gets or sets the endpoint address. - + The endpoint address. + - + - Gets or sets the layout that should be use to calcuate the value for the parameter. + Gets or sets the name of the endpoint configuration in WCF configuration file. - + The name of the endpoint configuration. + - + - Gets or sets the database parameter size. + Gets or sets a value indicating whether to use binary message encoding. - + - + - Gets or sets the database parameter precision. + Gets or sets the client ID. - + The client ID. + - + - Gets or sets the database parameter scale. + Gets the list of parameters. - + The parameters. + - + - Writes log messages to the database using an ADO.NET provider. + Sends log messages by email using SMTP protocol. - Documentation on NLog Wiki + Documentation on NLog Wiki - - The configuration is dependent on the database type, because - there are differnet methods of specifying connection string, SQL - command and command parameters. - - MS SQL Server using System.Data.SqlClient: - - Oracle using System.Data.OracleClient: - - Oracle using System.Data.OleDBClient: - - To set up the log target programmatically use code like this (an equivalent of MSSQL configuration): - +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +

+ Mail target works best when used with BufferingWrapper target + which lets you send multiple log messages in single mail +

+

+ To set up the buffered mail target in the configuration file, + use the following syntax: +

+ +

+ To set up the buffered mail target programmatically use code like this: +

+
- + - Initializes a new instance of the class. + Initializes a new instance of the class. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Performs installation which requires administrative permissions. + Renders the logging event message and adds it to the internal ArrayList of log messages. - The installation context. + The logging event. - + - Performs uninstallation which requires administrative permissions. + Renders an array logging events. - The installation context. + Array of logging events. - + - Determines whether the item is installed. + Gets or sets sender's email address (e.g. joe@domain.com). - The installation context. - - Value indicating whether the item is installed or null if it is not possible to determine. - + - + - Initializes the target. Can be used by inheriting classes - to initialize logging. + Gets or sets recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + - + - Closes the target and releases any unmanaged resources. + Gets or sets CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + - + - Writes the specified logging event to the database. It creates - a new database command, prepares parameters for it by calculating - layouts and executes the command. + Gets or sets BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). - The logging event. + - + - 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. + Gets or sets a value indicating whether to add new lines between log entries. - Logging events to be written out. + A value of true if new lines should be added; otherwise, false. + - + - Gets or sets the name of the database provider. + Gets or sets the mail subject. - - - The parameter name should be a provider invariant name as registered in machine.config or app.config. Common values are: - -
    -
  • System.Data.SqlClient - SQL Sever Client
  • -
  • System.Data.SqlServerCe.3.5 - SQL Sever Compact 3.5
  • -
  • System.Data.OracleClient - Oracle Client from Microsoft (deprecated in .NET Framework 4)
  • -
  • Oracle.DataAccess.Client - ODP.NET provider from Oracle
  • -
  • System.Data.SQLite - System.Data.SQLite driver for SQLite
  • -
  • Npgsql - Npgsql driver for PostgreSQL
  • -
  • MySql.Data.MySqlClient - MySQL Connector/Net
  • -
- (Note that provider invariant names are not supported on .NET Compact Framework). - - Alternatively the parameter value can be be a fully qualified name of the provider - connection type (class implementing ) or one of the following tokens: - -
    -
  • sqlserver, mssql, microsoft or msde - SQL Server Data Provider
  • -
  • oledb - OLEDB Data Provider
  • -
  • odbc - ODBC Data Provider
  • -
-
- +
- + - Gets or sets the connection string. When provided, it overrides the values - specified in DBHost, DBUserName, DBPassword, DBDatabase. + Gets or sets mail message body (repeated for each log message send in one mail). - + Alias for the Layout property. + - + - Gets or sets the connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used. + Gets or sets encoding to be used for sending e-mail. - + - + - Gets the installation DDL commands. + Gets or sets a value indicating whether to send message as HTML instead of plain text. - + - + - Gets the uninstallation DDL commands. + Gets or sets SMTP Server to be used for sending. - + - + - Gets or sets a value indicating whether to keep the - database connection open between the log events. + Gets or sets SMTP Authentication mode. - + - + - Gets or sets a value indicating whether to use database transactions. - Some data providers require this. + Gets or sets the username used to connect to SMTP server (used when SmtpAuthentication is set to "basic"). - + - + - Gets or sets the database host name. If the ConnectionString is not provided - this value will be used to construct the "Server=" part of the - connection string. + Gets or sets the password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic"). - + - + - Gets or sets 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. + Gets or sets a value indicating whether SSL (secure sockets layer) should be used when communicating with SMTP server. - + - + - Gets or sets the database password. If the ConnectionString is not provided - this value will be used to construct the "Password=" part of the - connection string. + Gets or sets the port number that SMTP Server is listening on. - + - + - Gets or sets the database name. If the ConnectionString is not provided - this value will be used to construct the "Database=" part of the - connection string. + Writes log messages to an ArrayList in memory for programmatic retrieval. - + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- + - Gets or sets the text of the SQL command to be run on each log level. + Initializes a new instance of the class. - Typically this is a SQL INSERT statement or a stored procedure call. - It should use the database-specific parameters (marked as @parameter - for SQL server or :parameter for Oracle, other data providers - have their own notation) and not the layout renderers, - because the latter is prone to SQL injection attacks. - The layout renderers should be specified as <parameter /> elements instead. + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - + - Gets the collection of parameters. Each parameter contains a mapping - between NLog layout and a database named or positional parameter. + Renders the logging event message and adds it to the internal ArrayList of log messages. - + The logging event. - + - Mock target - useful for testing. + Gets the list of logs gathered in the . - Documentation on NLog Wiki + + + + Pops up log messages as message boxes. + + Documentation on NLog Wiki

To set up the target in the configuration file, use the following syntax:

- +

This assumes just one target and a single rule. More configuration options are described here.

+ The result is a message box: +

+ +

To set up the log target programmatically use code like this:

- +
- + - Initializes a new instance of the class. + Initializes a new instance of the class. The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - + - Increases the number of messages. + Displays the message box with the log message and caption specified in the Caption + parameter. The logging event. - - - Gets the number of times this target has been called. - - - - + - Gets the last message rendered by this target. + Displays the message box with the array of rendered logs messages and caption specified in the Caption + parameter. - + The array of logging events. - + - Modes of archiving files based on time. + Gets or sets the message box title. + - + - Don't archive based on time. + A parameter to MethodCall. - + - Archive every year. + Initializes a new instance of the class. - + - Archive every month. + Initializes a new instance of the class. + The layout to use for parameter value. - + - Archive daily. + Initializes a new instance of the class. + Name of the parameter. + The layout. - + - Archive every hour. + Initializes a new instance of the class. + The name of the parameter. + The layout. + The type of the parameter. - + - Archive every minute. + Gets or sets the name of the parameter. + - + - Writes log messages to one or more files. + Gets or sets the type of the parameter. - Documentation on NLog Wiki + - + - Initializes a new instance of the class. + Gets or sets the layout that should be use to calcuate the value for the parameter. - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - + - + - Removes records of initialized files that have not been - accessed in the last two days. + Calls the specified static method on each log message and passes contextual parameters to it. - - Files are marked 'initialized' for the purpose of writing footers when the logging finishes. - + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- + - Removes records of initialized files that have not been - accessed after the specified date. + The base class for all targets which call methods (local or remote). + Manages parameters and type coercion. - The cleanup threshold. - - Files are marked 'initialized' for the purpose of writing footers when the logging finishes. - - + - Flushes all pending file operations. + Initializes a new instance of the class. - The asynchronous continuation. - - The timeout parameter is ignored, because file APIs don't provide - the needed functionality. - - + - Initializes file logging by creating data structures that - enable efficient multi-file logging. + Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). + + The logging event. + - + - Closes the file(s) opened for writing. + Calls the target method. Must be implemented in concrete classes. + Method call parameters. - + - Writes the specified logging event to a file specified in the FileName - parameter. + Gets the array of parameters to be passed. - The logging event. + - + - Writes the specified array of logging events to a file specified in the FileName - parameter. + Initializes the target. - An array of objects. - - This function makes use of the fact that the events are batched by sorting - the requests by filename. This optimizes the number of open/close calls - and can help improve performance. - - + - Formats the log event for write. + Calls the specified Method. - The log event to be formatted. - A string representation of the log event. + Method parameters. - + - Gets the bytes to be written to the file. + Gets or sets the class name. - Log event. - Array of bytes that are ready to be written. + - + - Modifies the specified byte array before it gets sent to a file. + Gets or sets the method name. The method must be public and static. - The byte array. - The modified byte array. The function can do the modification in-place. + - + - Gets or sets the name of the file to write to. + Action that should be taken if the message overflows. - - This FileName string is a layout which may include instances of layout renderers. - This lets you use a single target to write to multiple files. - - - The following value makes NLog write logging events to files based on the log level in the directory where - the application runs. - ${basedir}/${level}.log - All Debug messages will go to Debug.log, all Info messages will go to Info.log and so on. - You can combine as many of the layout renderers as you want to produce an arbitrary log file name. - - - + - Gets or sets a value indicating whether to create directories if they don't exist. + Report an error. - - Setting this to false may improve performance a bit, but you'll receive an error - when attempting to write to a directory that's not present. - - - + - Gets or sets a value indicating whether to delete old log file on startup. + Split the message into smaller pieces. - - This option works only when the "FileName" parameter denotes a single file. - - - + - Gets or sets a value indicating whether to replace file contents on each write instead of appending log message at the end. + Discard the entire message. - - + - Gets or sets a value indicating whether to keep log file open instead of opening and closing it on each logging event. + Represents a parameter to a NLogViewer target. - - Setting this property to True helps improve performance. - - - + - Gets or sets a value indicating whether to enable log file(s) to be deleted. + Initializes a new instance of the class. - - + - Gets or sets the line ending mode. + Gets or sets viewer parameter name. - + - + - Gets or sets a value indicating whether to automatically flush the file buffers after each log message. + Gets or sets the layout that should be use to calcuate the value for the parameter. - + - + - Gets or sets 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). + Discards log messages. Used mainly for debugging and benchmarking. - - The files are managed on a LRU (least recently used) basis, which flushes - the files that have not been used for the longest period of time should the - cache become full. As a rule of thumb, you shouldn't set this parameter to - a very high value. A number like 10-15 shouldn't be exceeded, because you'd - be keeping a large number of files open which consumes system resources. - - + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- + - Gets or sets the maximum number of seconds that files are kept open. If this number is negative the files are - not automatically closed after a period of inactivity. + Does nothing. Optionally it calculates the layout text but + discards the results. - + The logging event. - + - Gets or sets the log file buffer size in bytes. + Gets or sets a value indicating whether to perform layout calculation. - + - + - Gets or sets the file encoding. + Outputs log messages through the OutputDebugString() Win32 API. - + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- + - Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on the same host. + Outputs the rendered logging event through the OutputDebugString() Win32 API. - - This makes multi-process logging possible. NLog uses a special technique - that lets it keep the files open for writing. - - + The logging event. - + - Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. + Increments specified performance counter on each write. + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
- This effectively prevents files from being kept open. + TODO: + 1. Unable to create a category allowing multiple counter instances (.Net 2.0 API only, probably) + 2. Is there any way of adding new counters without deleting the whole category? + 3. There should be some mechanism of resetting the counter (e.g every day starts from 0), or auto-switching to + another counter instance (with dynamic creation of new instance). This could be done with layouts. -
- - - Gets or sets the number of times the write is appended on the file before NLog - discards the log message. - - - - + - Gets or sets the delay in milliseconds to wait before attempting to write to the file again. + Initializes a new instance of the class. - - The actual delay is a random value between 0 and the value specified - in this parameter. On each failed attempt the delay base is doubled - up to times. - - - Assuming that ConcurrentWriteAttemptDelay is 10 the time to wait will be:

- a random value between 0 and 10 milliseconds - 1st attempt
- a random value between 0 and 20 milliseconds - 2nd attempt
- a random value between 0 and 40 milliseconds - 3rd attempt
- a random value between 0 and 80 milliseconds - 4th attempt
- ...

- and so on. - - - +

- Gets or sets the size in bytes above which log files will be automatically archived. + Performs installation which requires administrative permissions. - - Caution: Enabling this option can considerably slow down your file - logging in multi-process scenarios. If only one process is going to - be writing to the file, consider setting ConcurrentWrites - to false for maximum performance. - - + The installation context.
- + - Gets or sets a value indicating whether to automatically archive log files every time the specified time passes. + Performs uninstallation which requires administrative permissions. - - 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. -

- Caution: Enabling this option can considerably slow down your file - logging in multi-process scenarios. If only one process is going to - be writing to the file, consider setting ConcurrentWrites - to false for maximum performance. -

-
- + The installation context.
- + - Gets or sets the name of the file to be used for an archive. + Determines whether the item is installed. - - 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 installation context. + + Value indicating whether the item is installed or null if it is not possible to determine. + - + - Gets or sets the maximum number of archive files that should be kept. + Increments the configured performance counter. - + Log event. - + - Gets or sets the way file archives are numbered. + Closes the target and releases any unmanaged resources. - - + - Gets the characters that are appended after each line. + Ensures that the performance counter has been initialized. + True if the performance counter is operational, false otherwise. - + - Line ending mode. + Gets or sets a value indicating whether performance counter should be automatically created. + - + - Insert platform-dependent end-of-line sequence after each line. + Gets or sets the name of the performance counter category. + - + - Insert CR LF sequence (ASCII 13, ASCII 10) after each line. + Gets or sets the name of the performance counter. + - + - Insert CR character (ASCII 13) after each line. + Gets or sets the performance counter instance name. + - + - Insert LF character (ASCII 10) after each line. + Gets or sets the counter help text. + - + - Don't insert any line ending. + Gets or sets the performance counter type. + - + - Sends log messages to a NLog Receiver Service (using WCF or Web Services). + The row-coloring condition. - Documentation on NLog Wiki - + - Initializes a new instance of the class. + Initializes static members of the RichTextBoxRowColoringRule class. - + - Writes logging event to the log target. Must be overridden in inheriting - classes. + Initializes a new instance of the class. - Logging event to be written out. - + - Writes an array of logging events to the log target. By default it iterates on all - events and passes them to "Append" method. Inheriting classes can use this method to - optimize batch writes. + Initializes a new instance of the class. - Logging events to be written out. + The condition. + Color of the foregroung text. + Color of the background text. + The font style. - + - Gets or sets the endpoint address. + Initializes a new instance of the class. - The endpoint address. - + The condition. + Color of the text. + Color of the background. - + - Gets or sets the client ID. + Checks whether the specified log event matches the condition (if any). - The client ID. - + + Log event. + + + A value of if the condition is not defined or + if it matches, otherwise. + - + - Gets the list of parameters. + Gets the default highlighting rule. Doesn't change the color. - The parameters. - + - + - Writes log messages to an ArrayList in memory for programmatic retrieval. + Gets or sets the condition that must be met in order to set the specified font color. - Documentation on NLog Wiki - -

- To set up the target in the configuration file, - use the following syntax: -

- -

- This assumes just one target and a single rule. More configuration - options are described here. -

-

- To set up the log target programmatically use code like this: -

- -
+
- + - Initializes a new instance of the class. + Gets or sets the font color. - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed. + - + - Renders the logging event message and adds it to the internal ArrayList of log messages. + Gets or sets the background color. - The logging event. + + Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed. + + - + - Gets the list of logs gathered in the . + Gets or sets the font style of matched text. + + Possible values are the same as in FontStyle enum in System.Drawing + + - + - Pops up log messages as message boxes. + Log text a Rich Text Box control in an existing or new form. - Documentation on NLog Wiki + Documentation on NLog Wiki

To set up the target in the configuration file, use the following syntax: -

- -

- This assumes just one target and a single rule. More configuration - options are described here. -

+

+

- The result is a message box: -

- + The result is: +

+ To set up the target with coloring rules in the configuration file, + use the following syntax: +

+ + +

- To set up the log target programmatically use code like this: -

- + The result is: +

+ To set up the log target programmatically similar to above use code like this: +

+ + , + + + for RowColoring, + + + for WordColoring
- + - Initializes a new instance of the class. + Initializes static members of the RichTextBoxTarget class. The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - + - Displays the message box with the log message and caption specified in the Caption - parameter. + Initializes a new instance of the class. - The logging event. + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + - + - Displays the message box with the array of rendered logs messages and caption specified in the Caption - parameter. + Initializes the target. Can be used by inheriting classes + to initialize logging. - The array of logging events. - + - Gets or sets the message box title. + Closes the target and releases any unmanaged resources. - - + + + Log message to RichTextBox. + + The logging event. + + + + Gets the default set of row coloring rules which applies when is set to true. + + + - A parameter to MethodCall. + Gets or sets the Name of RichTextBox to which Nlog will write. + - + - Initializes a new instance of the class. + Gets or sets the 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. + - + - Initializes a new instance of the class. + Gets or sets a value indicating whether to use default coloring rules. - The layout to use for parameter value. + - + - Initializes a new instance of the class. + Gets the row coloring rules. - Name of the parameter. - The layout. + - + - Initializes a new instance of the class. + Gets the word highlighting rules. - The name of the parameter. - The layout. - The type of the parameter. + - + - Gets or sets the name of the parameter. + Gets or sets a value indicating whether the created window will be a tool window. - + + This parameter is ignored when logging to existing form control. + Tool windows have thin border, and do not show up in the task bar. + + - + - Gets or sets the type of the parameter. + Gets or sets a value indicating whether the created form will be initially minimized. - + + This parameter is ignored when logging to existing form control. + + - + - Gets or sets the layout that should be use to calcuate the value for the parameter. + Gets or sets the initial width of the form with rich text box. - + + This parameter is ignored when logging to existing form control. + + - + - Calls the specified static method on each log message and passes contextual parameters to it. + Gets or sets the initial height of the form with rich text box. - Documentation on NLog Wiki - -

- To set up the target in the configuration file, - use the following syntax: -

- -

- This assumes just one target and a single rule. More configuration - options are described here. -

-

- To set up the log target programmatically use code like this: -

- -
+ + This parameter is ignored when logging to existing form control. + +
- + - The base class for all targets which call methods (local or remote). - Manages parameters and type coercion. + Gets or sets a value indicating whether scroll bar will be moved automatically to show most recent log entries. + - + - Initializes a new instance of the class. + Gets or sets the maximum number of lines the rich text box will store (or 0 to disable this feature). + + After exceeding the maximum number, first line will be deleted. + + - + - Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). + Gets or sets the form to log to. - - The logging event. - - + - Calls the target method. Must be implemented in concrete classes. + Gets or sets the rich text box to log to. - Method call parameters. - + - Gets the array of parameters to be passed. + Highlighting rule for Win32 colorful console. - - + - Initializes the target. + Initializes a new instance of the class. - + - Calls the specified Method. + Initializes a new instance of the class. - Method parameters. + The text to be matched.. + Color of the text. + Color of the background. - + - Gets or sets the class name. + Initializes a new instance of the class. - + The text to be matched.. + Color of the text. + Color of the background. + The font style. - + - Gets or sets the method name. The method must be public and static. + Gets or sets the regular expression to be matched. You must specify either text or regex. - + - + - Action that should be taken if the message overflows. + Gets or sets the text to be matched. You must specify either text or regex. + - + - Report an error. + Gets or sets a value indicating whether to match whole words only. + - + - Split the message into smaller pieces. + Gets or sets a value indicating whether to ignore case when comparing texts. + - + - Discard the entire message. + Gets or sets the font style of matched text. + Possible values are the same as in FontStyle enum in System.Drawing. + - + - Represents a parameter to a NLogViewer target. + Gets the compiled regular expression that matches either Text or Regex property. - + - Initializes a new instance of the class. + Gets or sets the font color. + Names are identical with KnownColor enum extended with Empty value which means that font color won't be changed. + - + - Gets or sets viewer parameter name. + Gets or sets the background color. + Names are identical with KnownColor enum extended with Empty value which means that background color won't be changed. - + - + - Gets or sets the layout that should be use to calcuate the value for the parameter. + SMTP authentication modes. - - + - Discards log messages. Used mainly for debugging and benchmarking. + No authentication. - Documentation on NLog Wiki - -

- To set up the target in the configuration file, - use the following syntax: -

- -

- This assumes just one target and a single rule. More configuration - options are described here. -

-

- To set up the log target programmatically use code like this: -

- -
- + - Does nothing. Optionally it calculates the layout text but - discards the results. + Basic - username and password. - The logging event. - + - Gets or sets a value indicating whether to perform layout calculation. + NTLM Authentication. - @@ -10133,6 +12826,36 @@ Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page). + + + Sends log messages through System.Diagnostics.Trace. + + Documentation on NLog Wiki + +

+ To set up the target in the configuration file, + use the following syntax: +

+ +

+ This assumes just one target and a single rule. More configuration + options are described here. +

+

+ To set up the log target programmatically use code like this: +

+ +
+
+ + + Writes the specified logging event to the facility. + If the log level is greater than or equal to it uses the + method, otherwise it uses + method. + + The logging event. + Web service protocol. @@ -10219,6 +12942,95 @@ + + + Win32 file attributes. + + + For more information see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/createfile.asp. + + + + + Read-only file. + + + + + Hidden file. + + + + + System file. + + + + + File should be archived. + + + + + Device file. + + + + + Normal file. + + + + + File is temporary (should be kept in cache and not + written to disk if possible). + + + + + Sparse file. + + + + + Reparse point. + + + + + Compress file contents. + + + + + File should not be indexed by the content indexing service. + + + + + Encrypted file. + + + + + The system writes through any intermediate cache and goes directly to disk. + + + + + The system opens a file with no system caching. + + + + + Delete file after it is closed. + + + + + A file is accessed according to POSIX rules. + + Asynchronous request queue. @@ -10437,6 +13249,11 @@ Discard the overflowing item. + + + Block until there's more room in the queue. + + Causes a flush after each write on a wrapped target. @@ -10715,6 +13532,112 @@ + + + Impersonates another user for the duration of the write. + + Documentation on NLog Wiki + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The wrapped target. + + + + Initializes the impersonation context. + + + + + Closes the impersonation context. + + + + + Changes the security context, forwards the call to the .Write() + and switches the context back to original. + + The log event. + + + + Changes the security context, forwards the call to the .Write() + and switches the context back to original. + + Log events. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + + + + Gets or sets username to change context to. + + + + + + Gets or sets the user account password. + + + + + + Gets or sets Windows domain name to change context to. + + + + + + Gets or sets the Logon Type. + + + + + + Gets or sets the type of the logon provider. + + + + + + Gets or sets the required impersonation level. + + + + + + Gets or sets a value indicating whether to revert to the credentials of the process instead of impersonating another user. + + + + + + Helper class which reverts the given + to its original value as part of . + + + + + Initializes a new instance of the class. + + The windows impersonation context. + + + + Reverts the impersonation context. + + Logon provider. diff --git a/NzbDrone.Core/Main.cs b/NzbDrone.Core/Main.cs index 8e22872a1..7a1a10b3d 100644 --- a/NzbDrone.Core/Main.cs +++ b/NzbDrone.Core/Main.cs @@ -1,11 +1,13 @@ using System; using System.IO; using System.Web; -using log4net; using Ninject; +using NLog.Config; +using NLog.Targets; using NzbDrone.Core.Providers; using SubSonic.DataProviders; using SubSonic.Repository; +using NLog; namespace NzbDrone.Core { @@ -20,7 +22,7 @@ namespace NzbDrone.Core kernel.Bind().To(); kernel.Bind().To(); kernel.Bind().To(); - kernel.Bind().ToMethod(c => LogManager.GetLogger("logger-name")); + kernel.Bind().ToMethod(c => log4net.LogManager.GetLogger("logger-name")); kernel.Bind().ToMethod(c => new SimpleRepository(provider, SimpleRepositoryOptions.RunMigrations)); } @@ -28,5 +30,42 @@ namespace NzbDrone.Core { get { return new DirectoryInfo(HttpContext.Current.Server.MapPath("\\")).Parent.FullName; } } + + + public static void ConfigureNlog() + { + // Step 1. Create configuration object + var config = new LoggingConfiguration(); + + // Step 2. Create targets and add them to the configuration + var consoleTarget = new DebuggerTarget(); + config.AddTarget("console", consoleTarget); + + FileTarget fileTarget = new FileTarget(); + config.AddTarget("file", fileTarget); + + // Step 3. Set target properties + consoleTarget.Layout = "${logger} ${message}"; + fileTarget.FileName = "${basedir}/test.log"; + fileTarget.Layout = "${message}"; + + // Step 4. Define rules + LoggingRule rule1 = new LoggingRule("*", LogLevel.Trace, consoleTarget); + config.LoggingRules.Add(rule1); + + LoggingRule rule2 = new LoggingRule("*", LogLevel.Trace, fileTarget); + config.LoggingRules.Add(rule2); + + // Step 5. Activate the configuration + NLog.LogManager.Configuration = config; + + Logger logger = LogManager.GetCurrentClassLogger(); + logger.Trace("trace log message"); + logger.Debug("debug log message"); + logger.Info("info log message"); + logger.Warn("warn log message"); + logger.Error("error log message"); + logger.Fatal("fatal log message"); + } } } \ No newline at end of file diff --git a/NzbDrone.Core/NzbDrone.Core.csproj b/NzbDrone.Core/NzbDrone.Core.csproj index 87cb933e7..8b7ce5d92 100644 --- a/NzbDrone.Core/NzbDrone.Core.csproj +++ b/NzbDrone.Core/NzbDrone.Core.csproj @@ -128,6 +128,10 @@ + + False + Libraries\NLog.Extended.dll + False Libraries\SubSonic.Core.dll @@ -202,6 +206,9 @@ + + + @@ -212,9 +219,6 @@ - - -