diff --git a/MTC_Adapter/MTC_Adapter/NLog.config b/MTC_Adapter/MTC_Adapter/NLog.config index 852b0b8..7a0f3aa 100644 --- a/MTC_Adapter/MTC_Adapter/NLog.config +++ b/MTC_Adapter/MTC_Adapter/NLog.config @@ -4,32 +4,30 @@ xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true" throwExceptions="false" - internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" > + internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log"> - - - - - @@ -39,6 +37,5 @@ Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f" --> - - \ No newline at end of file + diff --git a/MTC_Adapter/MTC_Adapter/NLog.xsd b/MTC_Adapter/MTC_Adapter/NLog.xsd index dc821bc..f61050f 100644 --- a/MTC_Adapter/MTC_Adapter/NLog.xsd +++ b/MTC_Adapter/MTC_Adapter/NLog.xsd @@ -232,7 +232,6 @@ - @@ -369,6 +368,7 @@ + @@ -402,6 +402,11 @@ Instance of that is used to format log messages. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -526,6 +531,7 @@ + @@ -554,6 +560,11 @@ Indicates whether to use default row highlighting rules. + + + Indicates whether to auto-check if the console is available. - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + The encoding for writing messages to the . @@ -665,6 +676,7 @@ + @@ -692,6 +704,11 @@ Indicates whether to send the log messages to the standard error instead of the standard output. + + + Indicates whether to auto-check if the console is available - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + The encoding for writing messages to the . @@ -1020,10 +1037,13 @@ - - + + + + + @@ -1033,15 +1053,15 @@ - + + - @@ -1093,14 +1113,29 @@ Size in bytes above which log files will be automatically archived. Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: + + + Indicates whether to compress archive files into the zip archive format. + + Maximum number of archive files that should be kept. - + - Indicates whether to compress archive files into the zip archive format. + Is the an absolute or relative path? + + + + + Is the an absolute or relative path? + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. @@ -1108,9 +1143,9 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - + - Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. + Indicates whether the footer should be written only when the file is archived. @@ -1158,9 +1193,9 @@ Indicates whether concurrent writes to the log file by multiple processes on the same host. - + - Delay in milliseconds to wait before attempting to write to the file again. + Indicates whether to keep log file open instead of opening and closing it on each logging event. @@ -1193,16 +1228,16 @@ Indicates whether to automatically flush the file buffers after each log message. + + + Delay in milliseconds to wait before attempting to write to the file again. + + Number of times the write is appended on the file before NLog discards the log message. - - - Indicates whether to keep log file open instead of opening and closing it on each logging event. - - @@ -1224,6 +1259,13 @@ + + + + + + + @@ -1704,6 +1746,7 @@ + @@ -1729,6 +1772,11 @@ Encoding to be used. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -1784,6 +1832,7 @@ + @@ -1817,6 +1866,11 @@ Instance of that is used to format log messages. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -2238,6 +2292,18 @@ + + + + + + + + + + + + @@ -2334,8 +2400,14 @@ + + + + Option to render the empty object value {} + + Option to suppress the extra spaces in the output json diff --git a/MTC_Adapter/MTC_Adapter/packages.config b/MTC_Adapter/MTC_Adapter/packages.config index afca064..6d71d1d 100644 --- a/MTC_Adapter/MTC_Adapter/packages.config +++ b/MTC_Adapter/MTC_Adapter/packages.config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file diff --git a/MTC_Adapter/packages/NLog.4.3.11/NLog.4.3.11.nupkg b/MTC_Adapter/packages/NLog.4.3.11/NLog.4.3.11.nupkg new file mode 100644 index 0000000..36258ab Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/NLog.4.3.11.nupkg differ diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.dll new file mode 100644 index 0000000..176d0a5 Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.xml similarity index 92% rename from MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.xml index 2969f01..fe615b6 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/MonoAndroid10/NLog.xml @@ -620,6 +620,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -648,6 +678,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -676,6 +736,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -704,6 +794,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -732,6 +852,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -760,6 +910,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1399,6 +1579,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -2007,6 +2233,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2201,6 +2432,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2608,9 +2844,16 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. + + + Prefix for assets in Xamarin Android + + Initializes a new instance of the class. @@ -2699,6 +2942,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3341,6 +3601,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3881,6 +4147,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -4020,6 +4293,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -4159,6 +4439,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -4298,6 +4585,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4437,6 +4731,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4576,6 +4877,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -6070,6 +6378,11 @@ A value of if logging is enabled for the Fatal level, otherwise it returns . + + + Various helper methods for accessing state of ASP application. + + Provides untyped IDictionary interface on top of generic IDictionary. @@ -6460,12 +6773,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -6525,6 +6832,12 @@ The file creation parameters. + + + Gets the mutually-exclusive lock for archiving files. + + The mutex for archiving. + Implementation of which caches @@ -6548,12 +6861,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -6627,14 +6934,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -6651,18 +6950,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -6733,62 +7025,10 @@ Gets or sets the file attributes (Windows only). - + - Provides a multiprocess-safe atomic file appends while - keeping the files open. + Should we capture the last write time of a file? - - 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 file characteristics, if the file information was retrieved successfully, otherwise null. - - - - 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. - @@ -6819,12 +7059,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -6868,12 +7102,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -6935,6 +7163,82 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. + + + + + not null when == false + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -6965,18 +7269,6 @@ Gets the wrapper around ConfigurationManager.AppSettings. - - - 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. @@ -7085,6 +7377,10 @@ Supports mocking of SMTP Client code. + + Disabled Error CS0618 'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed, + we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead' + @@ -7423,6 +7719,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -7448,6 +7753,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -7461,6 +7771,71 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + 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 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 process ID. + + + + + + Gets current process name. + + + + + + Gets current process name (excluding filename extension, if any). + + + Reflection helpers for accessing properties. @@ -7629,6 +8004,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -7638,6 +8025,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -7655,6 +8109,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -7677,6 +8147,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -7809,6 +8295,34 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + Win32-optimized implementation of . + + + + + Initializes a new instance of the class. + + + + + Gets current process ID. + + + + + + Gets current process name. + + + + + + Gets current process name (excluding filename extension, if any). + + + Helper class for XML @@ -7929,6 +8443,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -8009,10 +8542,89 @@ This string is used in + + + ASP Application variable. + + + + + 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 ASP Application variable name. + + + + + + ASP Request variable. + + + + + Renders the specified ASP 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 Session variable. + + + + + 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 session variable name. + + + Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -8021,6 +8633,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The current application domain's base directory. @@ -8179,6 +8796,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -8378,6 +9001,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -8903,6 +9532,18 @@ + + + The identifier of the current process. + + + + + Renders the current process ID. + + The to append the rendered data to. + Logging event. + The information about the running process. @@ -9136,6 +9777,24 @@ Working Set Size (64-bit). + + + The name of the current process. + + + + + Renders the current process name (optionally with a full path). + + 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. + + + The process time in format HH:mm:ss.mmm. @@ -9148,12 +9807,68 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + + + + + High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds. + + + + + Initializes a new instance of the class. + + + + + Initializes the layout renderer. + + + + + Renders the ticks value of current time and appends it to the specified . + + 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 a value indicating whether to output the difference between the result + of QueryPerformanceCounter and the previous one. + + + + + + Gets or sets a value indicating whether to convert the result to seconds by dividing + by the result of QueryPerformanceFrequency(). + + + + + + Gets or sets the number of decimal digits to be included in output. + + + + + + Gets or sets a value indicating whether to align decimal point (emit non-significant zeros). + + @@ -9539,6 +10254,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -9980,10 +10700,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -10007,83 +10758,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -10199,6 +10876,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -10241,6 +11026,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -10280,7 +11071,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -10385,6 +11176,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -10766,6 +11562,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -10940,6 +11742,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -10947,6 +11754,28 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. + + Occurs when logging changes. @@ -11359,6 +12188,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -11498,6 +12334,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -11637,6 +12480,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -11776,6 +12626,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -11915,6 +12772,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -12054,6 +12918,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -15081,6 +15952,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -15404,98 +16281,11 @@ The most recent archive has the highest number (in combination with the date). - + - Sends log messages to the remote instance of Chainsaw application from log4j. + Outputs log messages through the ASP Response object. - 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 be very slow. - 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. -

-
+ Documentation on NLog Wiki
@@ -15614,6 +16404,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -15622,6 +16418,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -15664,6 +16466,128 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class with a name. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + 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 be very slow. + 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. +

+
+
Initializes a new instance of the class. @@ -15672,6 +16596,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -15738,6 +16671,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -15788,6 +16727,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -15853,6 +16801,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Colored console output color. @@ -16063,6 +17017,41 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -16083,7 +17072,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -16095,6 +17084,13 @@ + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Highlighting rule for Win32 colorful console. @@ -16279,6 +17275,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -16324,6 +17337,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -16398,6 +17420,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -16421,21 +17464,6 @@ This value disables file archiving based on the size. - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -16469,21 +17497,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -16502,6 +17525,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -16565,6 +17597,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -16633,13 +17672,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -16688,6 +17720,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -16755,30 +17798,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -16812,11 +17869,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -16831,13 +17889,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -16846,13 +17905,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -16862,16 +17914,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -16895,6 +17937,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -16951,6 +17998,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -17094,6 +18146,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -17118,11 +18175,30 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -17217,6 +18293,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -17388,6 +18477,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -17406,7 +18504,7 @@ to initialize logging. - + Create mail and send with SMTP @@ -17621,6 +18719,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -17740,6 +18847,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -17849,6 +18967,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -17862,6 +18997,50 @@ + + + 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: +

+ +
+
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Outputs the rendered logging event through the OutputDebugString() Win32 API. + + The logging event. + SMTP authentication modes. @@ -17925,6 +19104,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Writes the specified logging event to the facility. @@ -17990,6 +19186,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -18173,13 +19375,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -18275,6 +19478,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -18311,6 +19521,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -18327,6 +19544,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -18404,6 +19627,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -18428,6 +19661,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -18556,6 +19796,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -18634,6 +19881,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -18656,6 +19911,119 @@ + + + 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. + + Name of the target. + The wrapped target. + + + + 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. @@ -18705,6 +20073,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -18754,6 +20134,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -18791,6 +20178,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -18835,6 +20230,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -18887,6 +20291,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -19025,6 +20436,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.dll new file mode 100644 index 0000000..9694a38 Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.xml similarity index 95% rename from MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.xml index aa9e3f2..cd686f4 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/Xamarin.iOS10/NLog.xml @@ -620,6 +620,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -648,6 +678,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -676,6 +736,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -704,6 +794,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -732,6 +852,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -760,6 +910,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1399,6 +1579,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -2007,6 +2233,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2201,6 +2432,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2608,14 +2844,11 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. - - - Prefix for assets in Xamarin Android - - Initializes a new instance of the class. @@ -2704,6 +2937,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3346,6 +3596,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3886,6 +4142,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -4025,6 +4288,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -4164,6 +4434,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -4303,6 +4580,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4442,6 +4726,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4581,6 +4872,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -6075,11 +6373,6 @@ A value of if logging is enabled for the Fatal level, otherwise it returns . - - - Various helper methods for accessing state of ASP application. - - Provides untyped IDictionary interface on top of generic IDictionary. @@ -6470,12 +6763,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -6535,6 +6822,12 @@ The file creation parameters. + + + Gets the mutually-exclusive lock for archiving files. + + The mutex for archiving. + Implementation of which caches @@ -6558,12 +6851,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -6637,14 +6924,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -6661,18 +6940,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -6743,62 +7015,10 @@ Gets or sets the file attributes (Windows only). - + - Provides a multiprocess-safe atomic file appends while - keeping the files open. + Should we capture the last write time of a file? - - 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 file characteristics, if the file information was retrieved successfully, otherwise null. - - - - 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. - @@ -6829,12 +7049,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -6878,12 +7092,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -6945,6 +7153,82 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. + + + + + not null when == false + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -6975,18 +7259,6 @@ Gets the wrapper around ConfigurationManager.AppSettings. - - - 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. @@ -7095,6 +7367,10 @@ Supports mocking of SMTP Client code. + + Disabled Error CS0618 'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed, + we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead' + @@ -7433,6 +7709,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -7458,6 +7743,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -7471,71 +7761,6 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. - - - 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 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 process ID. - - - - - - Gets current process name. - - - - - - Gets current process name (excluding filename extension, if any). - - - Reflection helpers for accessing properties. @@ -7704,6 +7929,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -7713,6 +7950,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -7730,6 +8034,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -7752,6 +8072,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -7884,34 +8220,6 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. - - - Win32-optimized implementation of . - - - - - Initializes a new instance of the class. - - - - - Gets current process ID. - - - - - - Gets current process name. - - - - - - Gets current process name (excluding filename extension, if any). - - - Helper class for XML @@ -8032,6 +8340,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -8112,88 +8439,11 @@ This string is used in - - - ASP Application variable. - - - - - 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 ASP Application variable name. - - - - - - ASP Request variable. - - - - - Renders the specified ASP 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 Session variable. - - - - - 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 session variable name. - - - Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -8202,6 +8452,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The current application domain's base directory. @@ -8360,6 +8615,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -8559,6 +8820,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -9084,18 +9351,6 @@ - - - The identifier of the current process. - - - - - Renders the current process ID. - - The to append the rendered data to. - Logging event. - The information about the running process. @@ -9329,24 +9584,6 @@ Working Set Size (64-bit). - - - The name of the current process. - - - - - Renders the current process name (optionally with a full path). - - 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. - - - The process time in format HH:mm:ss.mmm. @@ -9359,67 +9596,13 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff - - - - High precision timer, based on the value returned from QueryPerformanceCounter() optionally converted to seconds. - - - - - Initializes a new instance of the class. - - - - - Initializes the layout renderer. - - - - - Renders the ticks value of current time and appends it to the specified . - - 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 a value indicating whether to output the difference between the result - of QueryPerformanceCounter and the previous one. - - - - - - Gets or sets a value indicating whether to convert the result to seconds by dividing - by the result of QueryPerformanceFrequency(). - - - - - - Gets or sets the number of decimal digits to be included in output. - - - - - - Gets or sets a value indicating whether to align decimal point (emit non-significant zeros). - - + @@ -9805,6 +9988,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -10246,10 +10434,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -10273,83 +10492,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -10465,6 +10610,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -10507,6 +10760,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -10546,7 +10805,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -10651,6 +10910,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -11032,6 +11296,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -11206,6 +11476,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -11213,6 +11488,28 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. + + Occurs when logging changes. @@ -11625,6 +11922,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -11764,6 +12068,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -11903,6 +12214,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -12042,6 +12360,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -12181,6 +12506,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -12320,6 +12652,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -15347,6 +15686,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -15670,11 +16015,98 @@ The most recent archive has the highest number (in combination with the date). - + - Outputs log messages through the ASP Response object. + Sends log messages to the remote instance of Chainsaw application from log4j. - 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. +

+

+ 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 be very slow. + 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. +

+
@@ -15793,6 +16225,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -15801,6 +16239,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -15843,111 +16287,6 @@ - - - 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 be very slow. - 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. -

-
-
Initializes a new instance of the class. @@ -15956,6 +16295,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -16022,6 +16370,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -16072,6 +16426,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -16137,6 +16500,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Colored console output color. @@ -16347,6 +16716,41 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -16367,7 +16771,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -16379,6 +16783,13 @@ + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Highlighting rule for Win32 colorful console. @@ -16563,6 +16974,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -16608,6 +17036,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -16682,6 +17119,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -16705,21 +17163,6 @@ This value disables file archiving based on the size. - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -16753,21 +17196,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -16786,6 +17224,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -16849,6 +17296,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -16917,13 +17371,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -16972,6 +17419,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -17039,30 +17497,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -17096,11 +17568,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -17115,13 +17588,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -17130,13 +17604,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -17146,16 +17613,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -17179,6 +17636,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -17235,6 +17697,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -17378,6 +17845,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -17402,11 +17874,30 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -17501,6 +17992,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -17672,6 +18176,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -17690,7 +18203,7 @@ to initialize logging. - + Create mail and send with SMTP @@ -17905,6 +18418,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -18024,6 +18546,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -18133,6 +18666,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -18146,33 +18696,6 @@ - - - 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: -

- -
-
- - - Outputs the rendered logging event through the OutputDebugString() Win32 API. - - The logging event. - SMTP authentication modes. @@ -18236,6 +18759,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Writes the specified logging event to the facility. @@ -18301,6 +18841,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -18484,13 +19030,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -18586,6 +19133,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -18622,6 +19176,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -18638,6 +19199,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -18715,6 +19282,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -18739,6 +19316,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -18867,6 +19451,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -18945,6 +19536,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -18967,112 +19566,6 @@ - - - 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. @@ -19122,6 +19615,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -19171,6 +19676,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -19208,6 +19720,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -19252,6 +19772,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -19304,6 +19833,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -19442,6 +19978,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.dll new file mode 100644 index 0000000..5d3159a Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.xml similarity index 94% rename from MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.xml index d66e2fe..4fb005e 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/net35/NLog.xml @@ -632,6 +632,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -660,6 +690,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -688,6 +748,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -716,6 +806,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -744,6 +864,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -772,6 +922,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1416,6 +1596,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -2038,6 +2264,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2232,6 +2463,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2663,6 +2899,8 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. @@ -2754,6 +2992,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3097,61 +3352,6 @@ - - - A global logging class using caller info to find the logger. - - - - - Starts building a log event with the specified . - - The log level. - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Trace level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Debug level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Info level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Warn level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Error level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - - - - Starts building a log event at the Fatal level. - - The full path of the source file that contains the caller. This is the file path at the time of compile. - An instance of the fluent . - A fluent class to build log events for NLog. @@ -3283,31 +3483,22 @@ Index of the first user stack frame within the stack trace. current for chaining calls. - + Writes the log event to the underlying logger. - The method or property name of the caller to the method. This is set at by the compiler. - The full path of the source file that contains the caller. This is set at by the compiler. - The line number in the source file at which the method is called. This is set at by the compiler. - + - Writes the log event to the underlying logger if the condition delegate is true. + Writes the log event to the underlying logger. If condition is true, write log event; otherwise ignore event. - The method or property name of the caller to the method. This is set at by the compiler. - The full path of the source file that contains the caller. This is set at by the compiler. - The line number in the source file at which the method is called. This is set at by the compiler. - + - Writes the log event to the underlying logger if the condition is true. + Writes the log event to the underlying logger. If condition is true, write log event; otherwise ignore event. - The method or property name of the caller to the method. This is set at by the compiler. - The full path of the source file that contains the caller. This is set at by the compiler. - The line number in the source file at which the method is called. This is set at by the compiler. @@ -3466,6 +3657,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3975,46 +4172,6 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. - - - Logs an exception is logged at Error level if the provided task does not run to completion. - - The task for which to log an error if it does not run to completion. - This method is useful in fire-and-forget situations, where application logic does not depend on completion of task. This method is avoids C# warning CS4014 in such situations. - - - - Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion. - - The task for which to log an error if it does not run to completion. - A task that completes in the state when completes. - - - - Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. - - Async action to execute. - A task that completes in the state when completes. - - - - Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. - The exception is not propagated outside of this method; a default value is returned instead. - - Return type of the provided function. - Async function to run. - A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the default value of type . - - - - Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. - The exception is not propagated outside of this method; a fallback value is returned instead. - - Return type of the provided function. - Async function to run. - Fallback value to return if the task does not end in the state. - A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the fallback value. - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -4046,6 +4203,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -4185,6 +4349,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -4324,6 +4495,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -4463,6 +4641,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4602,6 +4787,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4741,6 +4933,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -6652,12 +6851,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -6680,6 +6873,25 @@ Date and time when the last write occurred in UTC. + + + Creates a mutually-exclusive lock for archiving files. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex for archiving that is sharable by more than one process. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex that is sharable by more than one process. + + The prefix to use for the name of the mutex. + A object which is sharable by multiple processes. + Creates the file stream. @@ -6717,6 +6929,12 @@ The file creation parameters. + + + Gets the mutually-exclusive lock for archiving files. + + The mutex for archiving. + Implementation of which caches @@ -6740,12 +6958,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -6824,14 +7036,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -6848,18 +7052,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -6935,6 +7132,11 @@ Gets or sets the file attributes (Windows only). + + + Should we capture the last write time of a file? + + Provides a multiprocess-safe atomic file appends while @@ -6971,11 +7173,11 @@ Flushes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -7021,11 +7223,11 @@ Closes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -7070,12 +7272,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -7137,6 +7333,82 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. + + + + + not null when == false + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -7157,18 +7429,6 @@ If is null and isn't a already, then the will get a locked by - - - 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. @@ -7315,6 +7575,15 @@ Supports mocking of SMTP Client code. + + Disabled Error CS0618 'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed, + we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead' + + + + + 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. + @@ -7653,6 +7922,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -7678,6 +7956,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -7924,6 +8207,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -7933,6 +8228,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -7950,6 +8312,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -7972,6 +8350,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -8252,6 +8646,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -8269,33 +8682,12 @@ The to append the rendered data to. Logging event. - - - The names of caller information attributes. - https://msdn.microsoft.com/en-us/library/hh534540.aspx - - - - - Also render the call attributes? (, - , ). - - - Gets or sets string that will be used to separate key/value pairs. - - - Also render the caller information attributes? (, - , ). - - See https://msdn.microsoft.com/en-us/library/hh534540.aspx - - Gets or sets how key/value pairs will be formatted. @@ -8435,6 +8827,7 @@ Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -8443,6 +8836,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The current application domain's base directory. @@ -8601,6 +8999,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -8800,6 +9204,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -9220,24 +9630,6 @@ - - - Mapped Diagnostic Logical Context item (based on CallContext). - - - - - Renders the specified MDLC item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Gets or sets the name of the item. - - - The formatted log message. @@ -9664,12 +10056,13 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + @@ -9779,12 +10172,6 @@ Default value wasn't a Layout before and needed an escape of the slash - - - Gets or sets the registry view (see: https://msdn.microsoft.com/de-de/library/microsoft.win32.registryview.aspx). - Allowed values: Registry32, Registry64, Default - - Gets or sets the registry key. @@ -10197,6 +10584,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -10638,10 +11030,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -10665,83 +11088,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -10857,6 +11206,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -10899,6 +11356,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -10938,7 +11401,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -11043,6 +11506,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -11424,6 +11892,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -11598,6 +12072,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -11605,9 +12084,26 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Currenty this logfactory is disposing? + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. @@ -11968,45 +12464,6 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. - - - Logs an exception is logged at Error level if the provided task does not run to completion. - - The task for which to log an error if it does not run to completion. - This method is useful in fire-and-forget situations, where application logic does not depend on completion of task. This method is avoids C# warning CS4014 in such situations. - - - - Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion. - - The task for which to log an error if it does not run to completion. - A task that completes in the state when completes. - - - - Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. - - Async action to execute. - - - - Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. - The exception is not propagated outside of this method; a default value is returned instead. - - Return type of the provided function. - Async function to run. - A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the default value of type . - - - - Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. - The exception is not propagated outside of this method; a fallback value is returned instead. - - Return type of the provided function. - Async function to run. - Fallback value to return if the task does not end in the state. - A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the fallback value. - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -12066,6 +12523,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -12205,6 +12669,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -12344,6 +12815,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -12483,6 +12961,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -12622,6 +13107,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -12761,6 +13253,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -15769,12 +16268,6 @@ Gets the target endpoint for the service to which the WCF client can connect. - - - Gets or sets the cookie container. - - The cookie container. - Implementation of which forwards received logs through or a given . @@ -16043,12 +16536,6 @@ Occurs when Close operation has completed. - - - Gets or sets the cookie container. - - The cookie container. - Initializes a new instance of the class. @@ -16317,12 +16804,6 @@ Occurs when the communication object first enters the closing state. - - - Gets or sets the cookie container. - - The cookie container. - Gets the target endpoint for the service to which the WCF client can connect. @@ -16519,6 +17000,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -16537,79 +17024,6 @@ Clears the content of current thread MDC. - - - Async version of Mapped Diagnostics Context - a logical context structure that keeps a dictionary - of strings and provides methods to output them in layouts. Allows for maintaining state across - asynchronous tasks and call contexts. - - - Ideally, these changes should be incorporated as a new version of the MappedDiagnosticsContext class in the original - NLog library so that state can be maintained for multiple threads in asynchronous situations. - - - - - Gets the current logical context named item, as . - - Item name. - The value of , if defined; otherwise . - If the value isn't a already, this call locks the for reading the needed for converting to . - - - - Gets the current logical context named item, as . - - Item name. - The to use when converting a value to a string. - The value of , if defined; otherwise . - If is null and the value isn't a already, this call locks the for reading the needed for converting to . - - - - Gets the current logical context named item, as . - - Item name. - The value of , if defined; otherwise null. - - - - Sets the current logical context item to the specified value. - - Item name. - Item value. - - - - Sets the current logical context item to the specified value. - - Item name. - Item value. - - - - Checks whether the specified exists in current logical context. - - Item name. - A boolean indicating whether the specified exists in current logical context. - - - - Removes the specified from current logical context. - - Item name. - - - - Clears the content of current logical context. - - - - - Clears the content of current logical context. - - Free the full slot. - Mapped Diagnostics Context - used for log4net compatibility. @@ -17202,6 +17616,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -17210,6 +17630,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -17252,6 +17678,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class with a name. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -17365,6 +17808,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -17431,6 +17883,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -17481,6 +17939,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -17546,6 +18013,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Writes log messages to the console with customizable coloring. @@ -17589,6 +18062,23 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + Initializes a new instance of the class. @@ -17597,6 +18087,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17672,6 +18171,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available. + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Gets the row highlighting rules. @@ -17862,6 +18368,41 @@ + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17882,7 +18423,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -17900,6 +18441,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Highlighting rule for Win32 colorful console. @@ -18100,6 +18648,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -18148,6 +18702,17 @@ Logging events to be written out. + + + Build the connectionstring from the properties. + + + Using at first, and falls back to the properties , + , and + + Event to render the layout inside the properties. + + Gets or sets the name of the database provider. @@ -18345,6 +18910,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -18390,6 +18972,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -18439,6 +19030,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -18606,6 +19203,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -18629,16 +19247,6 @@ This value disables file archiving based on the size. - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -18672,21 +19280,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -18705,6 +19308,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -18768,6 +19380,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -18836,13 +19455,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -18891,6 +19503,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -18958,30 +19581,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -19015,11 +19652,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -19034,13 +19672,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -19049,13 +19688,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -19065,16 +19697,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -19098,6 +19720,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -19154,6 +19781,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -19297,6 +19929,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -19321,6 +19958,14 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + Gets or sets a value indicating whether to compress archive files into the zip archive format. @@ -19332,6 +19977,11 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -19426,6 +20076,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -19566,6 +20229,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Called when log events are being sent (test hook). @@ -19702,6 +20371,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -19720,7 +20398,7 @@ to initialize logging. - + Create mail and send with SMTP @@ -19942,6 +20620,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -20061,6 +20748,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -20170,6 +20868,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -20204,6 +20919,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -20243,6 +20975,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -20386,6 +21124,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Writes the specified logging event to the facility. @@ -20451,6 +21206,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -20634,13 +21395,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -20736,6 +21498,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20772,6 +21541,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -20788,6 +21564,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -20865,6 +21647,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -20889,6 +21681,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -21017,6 +21816,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21095,6 +21901,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -21128,6 +21942,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -21272,6 +22093,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -21321,6 +22154,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21358,6 +22198,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -21402,6 +22250,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -21454,6 +22311,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21592,6 +22456,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.dll new file mode 100644 index 0000000..e539805 Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.xml similarity index 94% rename from MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.xml index 8155c53..cfc8c04 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/net40/NLog.xml @@ -632,6 +632,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -660,6 +690,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -688,6 +748,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -716,6 +806,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -744,6 +864,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -772,6 +922,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1416,6 +1596,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -2038,6 +2264,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2232,6 +2463,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2663,6 +2899,8 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. @@ -2754,6 +2992,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3402,6 +3657,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3942,6 +4203,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -4081,6 +4349,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -4220,6 +4495,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -4359,6 +4641,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4498,6 +4787,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4637,6 +4933,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -6548,12 +6851,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -6576,6 +6873,25 @@ Date and time when the last write occurred in UTC. + + + Creates a mutually-exclusive lock for archiving files. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex for archiving that is sharable by more than one process. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex that is sharable by more than one process. + + The prefix to use for the name of the mutex. + A object which is sharable by multiple processes. + Creates the file stream. @@ -6613,6 +6929,12 @@ The file creation parameters. + + + Gets the mutually-exclusive lock for archiving files. + + The mutex for archiving. + Implementation of which caches @@ -6636,12 +6958,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -6720,14 +7036,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -6744,18 +7052,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -6831,6 +7132,11 @@ Gets or sets the file attributes (Windows only). + + + Should we capture the last write time of a file? + + Provides a multiprocess-safe atomic file appends while @@ -6867,11 +7173,11 @@ Flushes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -6917,11 +7223,11 @@ Closes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -6966,12 +7272,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -7033,6 +7333,82 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. + + + + + not null when == false + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -7053,18 +7429,6 @@ If is null and isn't a already, then the will get a locked by - - - 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. @@ -7211,6 +7575,10 @@ Supports mocking of SMTP Client code. + + Disabled Error CS0618 'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed, + we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead' + @@ -7549,6 +7917,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -7574,6 +7951,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -7820,6 +8202,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -7829,6 +8223,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -7846,6 +8307,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -7868,6 +8345,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -8148,6 +8641,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -8310,6 +8822,7 @@ Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -8318,6 +8831,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The current application domain's base directory. @@ -8476,6 +8994,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -8675,6 +9199,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -9539,12 +10069,13 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + @@ -10072,6 +10603,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -10513,10 +11049,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -10540,83 +11107,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -10732,6 +11225,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -10774,6 +11375,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -10813,7 +11420,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -10918,6 +11525,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -11299,6 +11911,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -11473,6 +12091,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -11480,9 +12103,26 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Currenty this logfactory is disposing? + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. @@ -11902,6 +12542,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -12041,6 +12688,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -12180,6 +12834,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -12319,6 +12980,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -12458,6 +13126,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -12597,6 +13272,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -16337,6 +17019,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -16366,6 +17054,14 @@ NLog library so that state can be maintained for multiple threads in asynchronous situations. + + + Simulate ImmutableDictionary behavior (which is not yet part of all .NET frameworks). + In future the real ImmutableDictionary could be used here to minimize memory usage and copying time. + + Must be true for any subsequent dictionary modification operation + + Gets the current logical context named item, as . @@ -16404,6 +17100,12 @@ Item name. Item value. + + + Returns all item names + + A collection of the names of all items in current logical context. + Checks whether the specified exists in current logical context. @@ -17020,6 +17722,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -17028,6 +17736,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -17070,6 +17784,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class with a name. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -17183,6 +17914,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -17249,6 +17989,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -17299,6 +18045,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -17364,6 +18119,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Writes log messages to the console with customizable coloring. @@ -17407,6 +18168,23 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + Initializes a new instance of the class. @@ -17415,6 +18193,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17490,6 +18277,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available. + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Gets the row highlighting rules. @@ -17680,6 +18474,41 @@ + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17700,7 +18529,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -17718,6 +18547,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Highlighting rule for Win32 colorful console. @@ -17918,6 +18754,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -17966,6 +18808,17 @@ Logging events to be written out. + + + Build the connectionstring from the properties. + + + Using at first, and falls back to the properties , + , and + + Event to render the layout inside the properties. + + Gets or sets the name of the database provider. @@ -18163,6 +19016,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -18208,6 +19078,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -18257,6 +19136,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -18424,6 +19309,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -18447,21 +19353,6 @@ This value disables file archiving based on the size. - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -18495,21 +19386,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -18528,6 +19414,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -18591,6 +19486,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -18659,13 +19561,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -18714,6 +19609,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -18781,30 +19687,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -18838,11 +19758,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -18857,13 +19778,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -18872,13 +19794,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -18888,16 +19803,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -18921,6 +19826,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -18977,6 +19887,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -19120,6 +20035,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -19144,11 +20064,30 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -19243,6 +20182,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -19383,6 +20335,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Called when log events are being sent (test hook). @@ -19519,6 +20477,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -19537,7 +20504,7 @@ to initialize logging. - + Create mail and send with SMTP @@ -19759,6 +20726,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -19878,6 +20854,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -19987,6 +20974,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -20021,6 +21025,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -20060,6 +21081,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -20203,6 +21230,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Writes the specified logging event to the facility. @@ -20268,6 +21312,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -20451,13 +21501,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -20553,6 +21604,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20589,6 +21647,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -20605,6 +21670,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -20682,6 +21753,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -20706,6 +21787,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20834,6 +21922,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -20912,6 +22007,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -20945,6 +22048,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -21089,6 +22199,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -21138,6 +22260,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21175,6 +22304,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -21219,6 +22356,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -21271,6 +22417,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21409,6 +22562,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.dll new file mode 100644 index 0000000..5d4eb07 Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.xml similarity index 92% rename from MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.xml index eb9a7a5..0376daf 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/net45/NLog.xml @@ -632,6 +632,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -660,6 +690,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -688,6 +748,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -716,6 +806,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -744,6 +864,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -772,6 +922,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1416,6 +1596,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -2038,6 +2264,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2232,6 +2463,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2663,6 +2899,8 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. @@ -2754,6 +2992,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3097,6 +3352,61 @@ + + + A global logging class using caller info to find the logger. + + + + + Starts building a log event with the specified . + + The log level. + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Trace level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Debug level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Info level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Warn level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Error level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + + + + Starts building a log event at the Fatal level. + + The full path of the source file that contains the caller. This is the file path at the time of compile. + An instance of the fluent . + A fluent class to build log events for NLog. @@ -3228,22 +3538,31 @@ Index of the first user stack frame within the stack trace. current for chaining calls. - + Writes the log event to the underlying logger. + The method or property name of the caller to the method. This is set at by the compiler. + The full path of the source file that contains the caller. This is set at by the compiler. + The line number in the source file at which the method is called. This is set at by the compiler. - + - Writes the log event to the underlying logger. + Writes the log event to the underlying logger if the condition delegate is true. If condition is true, write log event; otherwise ignore event. + The method or property name of the caller to the method. This is set at by the compiler. + The full path of the source file that contains the caller. This is set at by the compiler. + The line number in the source file at which the method is called. This is set at by the compiler. - + - Writes the log event to the underlying logger. + Writes the log event to the underlying logger if the condition is true. If condition is true, write log event; otherwise ignore event. + The method or property name of the caller to the method. This is set at by the compiler. + The full path of the source file that contains the caller. This is set at by the compiler. + The line number in the source file at which the method is called. This is set at by the compiler. @@ -3402,6 +3721,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3911,6 +4236,46 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. + + + Logs an exception is logged at Error level if the provided task does not run to completion. + + The task for which to log an error if it does not run to completion. + This method is useful in fire-and-forget situations, where application logic does not depend on completion of task. This method is avoids C# warning CS4014 in such situations. + + + + Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion. + + The task for which to log an error if it does not run to completion. + A task that completes in the state when completes. + + + + Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. + + Async action to execute. + A task that completes in the state when completes. + + + + Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. + The exception is not propagated outside of this method; a default value is returned instead. + + Return type of the provided function. + Async function to run. + A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the default value of type . + + + + Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. + The exception is not propagated outside of this method; a fallback value is returned instead. + + Return type of the provided function. + Async function to run. + Fallback value to return if the task does not end in the state. + A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the fallback value. + Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -3942,6 +4307,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -4081,6 +4453,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -4220,6 +4599,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -4359,6 +4745,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4498,6 +4891,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4637,6 +5037,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -6548,12 +6955,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -6576,6 +6977,25 @@ Date and time when the last write occurred in UTC. + + + Creates a mutually-exclusive lock for archiving files. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex for archiving that is sharable by more than one process. + + A object which can be used for controlling the archiving of files. + + + + Creates a mutex that is sharable by more than one process. + + The prefix to use for the name of the mutex. + A object which is sharable by multiple processes. + Creates the file stream. @@ -6613,6 +7033,12 @@ The file creation parameters. + + + Gets the mutually-exclusive lock for archiving files. + + The mutex for archiving. + Implementation of which caches @@ -6636,12 +7062,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -6720,14 +7140,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -6744,18 +7156,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -6831,6 +7236,11 @@ Gets or sets the file attributes (Windows only). + + + Should we capture the last write time of a file? + + Provides a multiprocess-safe atomic file appends while @@ -6867,11 +7277,11 @@ Flushes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -6917,11 +7327,11 @@ Closes this instance. - + - Gets the file info. + Creates a mutually-exclusive lock for archiving files. - The file characteristics, if the file information was retrieved successfully, otherwise null. + A object which can be used for controlling the archiving of files. @@ -6966,12 +7376,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -7033,6 +7437,82 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. + + + + + not null when == false + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -7053,18 +7533,6 @@ If is null and isn't a already, then the will get a locked by - - - 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. @@ -7211,11 +7679,10 @@ 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. - + + Disabled Error CS0618 'SmtpClient' is obsolete: 'SmtpClient and its network of types are poorly designed, + we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead' + @@ -7554,6 +8021,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -7579,6 +8055,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -7825,6 +8306,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -7834,6 +8327,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -7851,6 +8411,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -7873,6 +8449,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -8153,6 +8745,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -8170,12 +8781,33 @@ The to append the rendered data to. Logging event. + + + The names of caller information attributes. + https://msdn.microsoft.com/en-us/library/hh534540.aspx + + + + + Also render the call attributes? (, + , ). + + + Gets or sets string that will be used to separate key/value pairs. + + + Also render the caller information attributes? (, + , ). + + See https://msdn.microsoft.com/en-us/library/hh534540.aspx + + Gets or sets how key/value pairs will be formatted. @@ -8315,6 +8947,7 @@ Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -8323,6 +8956,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The current application domain's base directory. @@ -8481,6 +9119,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -8680,6 +9324,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -9100,6 +9750,24 @@ + + + Mapped Diagnostic Logical Context item (based on CallContext). + + + + + Renders the specified MDLC item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + The formatted log message. @@ -9526,12 +10194,13 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + @@ -9641,6 +10310,12 @@ Default value wasn't a Layout before and needed an escape of the slash + + + Gets or sets the registry view (see: https://msdn.microsoft.com/de-de/library/microsoft.win32.registryview.aspx). + Allowed values: Registry32, Registry64, Default + + Gets or sets the registry key. @@ -10053,6 +10728,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -10494,10 +11174,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -10521,83 +11232,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -10713,6 +11350,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -10755,6 +11500,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -10794,7 +11545,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -10899,6 +11650,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -11280,6 +12036,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -11454,6 +12216,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -11461,9 +12228,26 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. - + - Currenty this logfactory is disposing? + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. @@ -11824,6 +12608,45 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. + + + Logs an exception is logged at Error level if the provided task does not run to completion. + + The task for which to log an error if it does not run to completion. + This method is useful in fire-and-forget situations, where application logic does not depend on completion of task. This method is avoids C# warning CS4014 in such situations. + + + + Returns a task that completes when a specified task to completes. If the task does not run to completion, an exception is logged at Error level. The returned task always runs to completion. + + The task for which to log an error if it does not run to completion. + A task that completes in the state when completes. + + + + Runs async action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. + + Async action to execute. + + + + Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. + The exception is not propagated outside of this method; a default value is returned instead. + + Return type of the provided function. + Async function to run. + A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the default value of type . + + + + Runs the provided async function and returns its result. If the task does not run to completion, an exception is logged at Error level. + The exception is not propagated outside of this method; a fallback value is returned instead. + + Return type of the provided function. + Async function to run. + Fallback value to return if the task does not end in the state. + A task that represents the completion of the supplied task. If the supplied task ends in the state, the result of the new task will be the result of the supplied task; otherwise, the result of the new task will be the fallback value. + Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -11883,6 +12706,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -12022,6 +12852,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -12161,6 +12998,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -12300,6 +13144,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -12439,6 +13290,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -12578,6 +13436,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -15586,6 +16451,12 @@ Gets the target endpoint for the service to which the WCF client can connect. + + + Gets or sets the cookie container. + + The cookie container. + Implementation of which forwards received logs through or a given . @@ -15854,6 +16725,12 @@ Occurs when Close operation has completed. + + + Gets or sets the cookie container. + + The cookie container. + Initializes a new instance of the class. @@ -16122,6 +16999,12 @@ Occurs when the communication object first enters the closing state. + + + Gets or sets the cookie container. + + The cookie container. + Gets the target endpoint for the service to which the WCF client can connect. @@ -16318,6 +17201,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -16336,6 +17225,93 @@ Clears the content of current thread MDC. + + + Async version of Mapped Diagnostics Context - a logical context structure that keeps a dictionary + of strings and provides methods to output them in layouts. Allows for maintaining state across + asynchronous tasks and call contexts. + + + Ideally, these changes should be incorporated as a new version of the MappedDiagnosticsContext class in the original + NLog library so that state can be maintained for multiple threads in asynchronous situations. + + + + + Simulate ImmutableDictionary behavior (which is not yet part of all .NET frameworks). + In future the real ImmutableDictionary could be used here to minimize memory usage and copying time. + + Must be true for any subsequent dictionary modification operation + + + + + Gets the current logical context named item, as . + + Item name. + The value of , if defined; otherwise . + If the value isn't a already, this call locks the for reading the needed for converting to . + + + + Gets the current logical context named item, as . + + Item name. + The to use when converting a value to a string. + The value of , if defined; otherwise . + If is null and the value isn't a already, this call locks the for reading the needed for converting to . + + + + Gets the current logical context named item, as . + + Item name. + The value of , if defined; otherwise null. + + + + Sets the current logical context item to the specified value. + + Item name. + Item value. + + + + Sets the current logical context item to the specified value. + + Item name. + Item value. + + + + Returns all item names + + A collection of the names of all items in current logical context. + + + + Checks whether the specified exists in current logical context. + + Item name. + A boolean indicating whether the specified exists in current logical context. + + + + Removes the specified from current logical context. + + Item name. + + + + Clears the content of current logical context. + + + + + Clears the content of current logical context. + + Free the full slot. + Mapped Diagnostics Context - used for log4net compatibility. @@ -16928,6 +17904,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -16936,6 +17918,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -16978,6 +17966,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class with a name. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -17091,6 +18096,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -17157,6 +18171,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -17207,6 +18227,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -17272,6 +18301,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Writes log messages to the console with customizable coloring. @@ -17315,6 +18350,23 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + Initializes a new instance of the class. @@ -17323,6 +18375,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17398,6 +18459,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available. + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Gets the row highlighting rules. @@ -17588,6 +18656,41 @@ + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -17608,7 +18711,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -17626,6 +18729,13 @@ Has side effect + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + Highlighting rule for Win32 colorful console. @@ -17826,6 +18936,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -17874,6 +18990,17 @@ Logging events to be written out. + + + Build the connectionstring from the properties. + + + Using at first, and falls back to the properties , + , and + + Event to render the layout inside the properties. + + Gets or sets the name of the database provider. @@ -18071,6 +19198,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -18116,6 +19260,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -18165,6 +19318,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -18332,6 +19491,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -18355,21 +19535,6 @@ This value disables file archiving based on the size. - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Cached invalid filenames char array to avoid memory allocation everytime Path.GetInvalidFileNameChars() is called. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -18403,21 +19568,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -18436,6 +19596,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -18499,6 +19668,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -18567,13 +19743,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -18622,6 +19791,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -18689,30 +19869,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -18746,11 +19940,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -18765,13 +19960,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -18780,13 +19976,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -18796,16 +19985,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -18829,6 +20008,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -18885,6 +20069,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -19028,6 +20217,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -19052,11 +20246,30 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -19151,6 +20364,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -19291,6 +20517,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Called when log events are being sent (test hook). @@ -19427,6 +20659,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -19445,7 +20686,7 @@ to initialize logging. - + Create mail and send with SMTP @@ -19667,6 +20908,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -19786,6 +21036,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -19895,6 +21156,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -19929,6 +21207,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Outputs the rendered logging event through the OutputDebugString() Win32 API. @@ -19968,6 +21263,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + Performs installation which requires administrative permissions. @@ -20111,6 +21412,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Writes the specified logging event to the facility. @@ -20176,6 +21494,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -20359,13 +21683,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -20461,6 +21786,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20497,6 +21829,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -20513,6 +21852,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -20590,6 +21935,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -20614,6 +21969,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20742,6 +22104,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -20820,6 +22189,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -20853,6 +22230,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -20997,6 +22381,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -21046,6 +22442,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21083,6 +22486,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -21127,6 +22538,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -21179,6 +22599,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21317,6 +22744,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -21337,6 +22771,19 @@ Logging events to be written out. + + + Builtin IFileCompressor implementation utilizing the .Net4.5 specific + and is used as the default value for on .Net4.5. + So log files created via can be zipped when archived + w/o 3rd party zip library when run on .Net4.5 or higher. + + + + + Implements using the .Net4.5 specific + + Current local time retrieved directly from DateTime.Now. diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.dll new file mode 100644 index 0000000..f3e0a3f Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.xml similarity index 92% rename from MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.xml index 95aa0e1..1895c31 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/sl4/NLog.xml @@ -475,16 +475,6 @@ The log event. The continuation. - - - Gets the log event. - - - - - Gets the continuation. - - Implements the operator ==. @@ -518,6 +508,16 @@ A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + Gets the log event. + + + + + Gets the continuation. + + NLog internal logger. @@ -538,40 +538,6 @@ Set the config of the InternalLogger with defaults and config. - - - Gets or sets the minimal internal log level. - - If set to , then messages of the levels , and will be written. - - - - Gets or sets a value indicating whether internal messages should be written to the console output stream. - - Your application must be a console application. - - - - Gets or sets a value indicating whether internal messages should be written to the console error stream. - - Your application must be a console application. - - - - Gets or sets the file path of the internal log file. - - A value of value disables internal logging to a file. - - - - Gets or sets the text writer that will receive internal logs. - - - - - Gets or sets a value indicating whether timestamp should be included in internal log output. - - Logs the specified message without an at the specified level. @@ -633,6 +599,388 @@ The assembly to log. + + + Logs the specified message without an at the Trace level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + Log message. + + + + Logs the specified message with an at the Trace level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Trace level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Debug level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Debug level. + + Log message. + + + + Logs the specified message with an at the Debug level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Debug level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Info level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Info level. + + Log message. + + + + Logs the specified message with an at the Info level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Info level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Warn level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Warn level. + + Log message. + + + + Logs the specified message with an at the Warn level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Warn level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Error level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Error level. + + Log message. + + + + Logs the specified message with an at the Error level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Error level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Fatal level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Fatal level. + + Log message. + + + + Logs the specified message with an at the Fatal level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Fatal level. + + Exception to be logged. + Log message. + + + + Gets or sets the minimal internal log level. + + If set to , then messages of the levels , and will be written. + + + + Gets or sets a value indicating whether internal messages should be written to the console output stream. + + Your application must be a console application. + + + + Gets or sets a value indicating whether internal messages should be written to the console error stream. + + Your application must be a console application. + + + + Gets or sets the file path of the internal log file. + + A value of value disables internal logging to a file. + + + + Gets or sets the text writer that will receive internal logs. + + + + + Gets or sets a value indicating whether timestamp should be included in internal log output. + + Gets a value indicating whether internal log includes Trace messages. @@ -663,174 +1011,6 @@ Gets a value indicating whether internal log includes Fatal messages. - - - Logs the specified message without an at the Trace level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Trace level. - - Log message. - - - - Logs the specified message with an at the Trace level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Trace level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Debug level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Debug level. - - Log message. - - - - Logs the specified message with an at the Debug level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Debug level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Info level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Info level. - - Log message. - - - - Logs the specified message with an at the Info level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Info level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Warn level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Warn level. - - Log message. - - - - Logs the specified message with an at the Warn level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Warn level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Error level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Error level. - - Log message. - - - - Logs the specified message with an at the Error level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Error level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Fatal level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Fatal level. - - Log message. - - - - Logs the specified message with an at the Fatal level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Fatal level. - - Exception to be logged. - Log message. - A cyclic buffer of object. @@ -838,17 +1018,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Buffer size. Whether buffer should grow as it becomes full. The maximum number of items that the buffer can grow to. - - - Gets the number of items in the array. - - Adds the specified log event to the buffer. @@ -862,64 +1037,16 @@ Events in the buffer. + + + Gets the number of items in the array. + + Condition and expression. - - - Initializes a new instance of the class. - - Left hand side of the AND expression. - Right hand side of the AND expression. - - - - Gets the left hand side of the AND expression. - - - - - Gets the right hand side of the AND expression. - - - - - Returns a string representation of this expression. - - A concatenated '(Left) and (Right)' string. - - - - Evaluates the expression by evaluating and recursively. - - Evaluation context. - The value of the conjunction operator. - - - - Exception during evaluation of condition expression. - - - - - 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. - Base class for representing nodes in condition expression trees. @@ -954,6 +1081,59 @@ Evaluation context. Expression result. + + + Initializes a new instance of the class. + + Left hand side of the AND expression. + Right hand side of the AND expression. + + + + Returns a string representation of this expression. + + A concatenated '(Left) and (Right)' string. + + + + Evaluates the expression by evaluating and recursively. + + Evaluation context. + The value of the conjunction operator. + + + + Gets the left hand side of the AND expression. + + + + + Gets the right hand side of the AND expression. + + + + + Exception during evaluation of condition expression. + + + + + 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. + Condition layout expression (represented by a string literal @@ -962,16 +1142,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The layout. - - - Gets the layout. - - The layout. - Returns a string representation of this expression. @@ -986,6 +1160,12 @@ Evaluation context. The value of the layout. + + + Gets the layout. + + The layout. + Condition level expression (represented by the level keyword). @@ -1011,16 +1191,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Literal value. - - - Gets the literal value. - - The literal value. - Returns a string representation of the expression. @@ -1034,6 +1208,12 @@ Evaluation context. The literal value as passed in the constructor. + + + Gets the literal value. + + The literal value. + Condition logger name expression (represented by the logger keyword). @@ -1075,9 +1255,27 @@ Marks class as a log event Condition and assigns a name to it. + + + Attaches a simple name to an item (such as , + , , etc.). + + + + + Initializes a new instance of the class. + + The name of the item. + + + + Gets the name of the item. + + The name of the item. + - Initializes a new instance of the class. + Initializes a new instance of the class. Condition method name. @@ -1088,23 +1286,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the condition method. of the condition method. The method parameters. - - - Gets the method info. - - - - - Gets the method parameters. - - The method parameters. - Returns a string representation of the expression. @@ -1120,6 +1307,17 @@ Evaluation context. Expression result. + + + Gets the method info. + + + + + Gets the method parameters. + + The method parameters. + A bunch of utility methods (mostly predicates) which can be used in @@ -1189,16 +1387,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The expression. - - - Gets the expression to be negated. - - The expression. - Returns a string representation of the expression. @@ -1214,6 +1406,12 @@ Evaluation context. Expression result. + + + Gets the expression to be negated. + + The expression. + Condition or expression. @@ -1221,23 +1419,11 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Left hand side of the OR expression. Right hand side of the OR expression. - - - Gets the left expression. - - The left expression. - - - - Gets the right expression. - - The right expression. - Returns a string representation of the expression. @@ -1253,6 +1439,18 @@ Evaluation context. The value of the alternative operator. + + + Gets the left expression. + + The left expression. + + + + Gets the right expression. + + The right expression. + Exception during parsing of condition expression. @@ -1260,18 +1458,18 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -1325,30 +1523,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The left expression. The right expression. The relational operator. - - - Gets the left expression. - - The left expression. - - - - Gets the right expression. - - The right expression. - - - - Gets the relational operator. - - The operator. - Returns a string representation of the expression. @@ -1373,6 +1553,70 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + + + + Gets the left expression. + + The left expression. + + + + Gets the right expression. + + The right expression. + + + + Gets the relational operator. + + The operator. + Relational operators used in conditions. @@ -1419,30 +1663,6 @@ The string reader. - - - Gets the token position. - - The token position. - - - - Gets the type of the token. - - The type of the token. - - - - Gets the token value. - - The token value. - - - - Gets the value of a string token. - - The string token value. - Asserts current token type and advances to the next token. @@ -1509,6 +1729,30 @@ current char is match + + + Gets the token position. + + The token position. + + + + Gets the type of the token. + + The type of the token. + + + + Gets the token value. + + The token value. + + + + Gets the value of a string token. + + The string token value. + Mapping between characters and token types for punctuations. @@ -1534,7 +1778,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -1550,7 +1794,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The type of the array item. The XML element name that represents the item. @@ -1583,6 +1827,42 @@ The assemblies to scan for named items. + + + Registers named items from the assembly. + + The assembly. + + + + Registers named items from the assembly. + + The assembly. + Item name prefix. + + + + Clears the contents of all factories. + + + + + Registers the type. + + The type to register. + The item name prefix. + + + + Builds the default configuration item factory. + + Default factory. + + + + Registers items in NLog.Extended.dll using late-bound types, so that we don't need a reference to NLog.Extended.dll. + + Gets or sets default singleton instance of . @@ -1642,42 +1922,6 @@ The condition method factory. - - - Registers named items from the assembly. - - The assembly. - - - - Registers named items from the assembly. - - The assembly. - Item name prefix. - - - - Clears the contents of all factories. - - - - - Registers the type. - - The type to register. - The item name prefix. - - - - Builds the default configuration item factory. - - Default factory. - - - - Registers items in NLog.Extended.dll using late-bound types, so that we don't need a reference to NLog.Extended.dll. - - Attribute used to mark the default parameters for layout renderers. @@ -1685,7 +1929,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -1735,6 +1979,48 @@ The base type of each item. The type of the attribute used to annotate items. + + + Represents a factory of named items (such as targets, layouts, layout renderers, etc.). + + Base type for each item instance. + Item definition type (typically or ). + + + + Registers new item definition. + + Name of the item. + Item definition. + + + + Tries to get registered item definition. + + Name of the item. + Reference to a variable which will store the item definition. + Item definition. + + + + Creates item instance. + + Name of the item. + Newly created item instance. + + + + Tries to create an item instance. + + Name of the item. + The result. + True if instance was created successfully, false otherwise. + + + + Provides means to populate factories of named items (such as targets, layouts, layout renderers, etc.). + + Scans the assembly. @@ -1791,11 +2077,6 @@ The name of the item. Created item. - - - Provides means to populate factories of named items (such as targets, layouts, layout renderers, etc.). - - Implemented by objects which support installation and uninstallation. @@ -1822,43 +2103,6 @@ Value indicating whether the item is installed or null if it is not possible to determine. - - - Represents a factory of named items (such as targets, layouts, layout renderers, etc.). - - Base type for each item instance. - Item definition type (typically or ). - - - - Registers new item definition. - - Name of the item. - Item definition. - - - - Tries to get registered item definition. - - Name of the item. - Reference to a variable which will store the item definition. - Item definition. - - - - Creates item instance. - - Name of the item. - Newly created item instance. - - - - Tries to create an item instance. - - Name of the item. - The result. - True if instance was created successfully, false otherwise. - Provides context for install/uninstall operations. @@ -1875,26 +2119,6 @@ The log output. - - - Gets or sets the installation log level. - - - - - Gets or sets a value indicating whether to ignore failures during installation. - - - - - Gets the installation parameters. - - - - - Gets or sets the log output. - - Logs the specified trace message. @@ -1941,6 +2165,26 @@ Log event info object. + + + Gets or sets the installation log level. + + + + + Gets or sets a value indicating whether to ignore failures during installation. + + + + + Gets the installation parameters. + + + + + Gets or sets the log output. + + Keeps logging configuration and provides simple API @@ -1955,51 +2199,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Use the old exception log handling of NLog 3.0? - - - - - Gets the variables defined in the configuration. - - - - - Gets a collection of named targets specified in the configuration. - - - A list of named targets. - - - Unnamed targets (such as those wrapped by other targets) are not returned. - - - - - Gets the collection of file names which should be watched for changes by NLog. - - - - - Gets the collection of logging rules. - - - - - Gets or sets the default culture info to use as . - - - Specific culture info or null to use - - - - - Gets all targets. + Compare on name @@ -2134,8 +2339,7 @@ - Log to the internal (NLog) logger the information about the and associated with this instance. + Log to the internal (NLog) logger the information about the and associated with this instance. The information are only recorded in the internal logger if Debug level is enabled, otherwise nothing is @@ -2153,6 +2357,55 @@ Validates the configuration. + + + Use the old exception log handling of NLog 3.0? + + + + + Gets the variables defined in the configuration. + + + + + Gets a collection of named targets specified in the configuration. + + + A list of named targets. + + + Unnamed targets (such as those wrapped by other targets) are not returned. + + + + + Gets the collection of file names which should be watched for changes by NLog. + + + + + Gets the collection of logging rules. + + + + + Gets or sets the default culture info to use as . + + + Specific culture info or null to use + + + + + Gets all targets. + + + + + Compare on name + + Arguments for events. @@ -2160,7 +2413,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The old configuration. The new configuration. @@ -2184,12 +2437,12 @@ - Create an empty . + Create an empty . - Create a new with a and which writes to . + Create a new with a and which writes to . Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Minimum log level needed to trigger this rule. @@ -2198,7 +2451,7 @@ - Create a new with a which writes to . + Create a new with a which writes to . Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Minimum log level needed to trigger this rule. @@ -2206,44 +2459,11 @@ - Create a (disabled) . You should call or see cref="EnableLoggingForLevels"/> to enable logging. + Create a (disabled) . You should call or see cref="EnableLoggingForLevels"/> to enable logging. Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Target to be written to when the rule matches. - - - Gets a collection of targets that should be written to when this rule matches. - - - - - Gets a collection of child rules to be evaluated when this rule matches. - - - - - Gets a collection of filters to be checked before writing to targets. - - - - - Gets or sets a value indicating whether to quit processing any further rule when this one matches. - - - - - Gets or sets logger name pattern. - - - Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends but not anywhere else. - - - - - Gets the collection of log levels enabled by this rule. - - Enables logging for a particular level. @@ -2285,6 +2505,39 @@ String to be matched. A value of when the name matches, otherwise. + + + Gets a collection of targets that should be written to when this rule matches. + + + + + Gets a collection of child rules to be evaluated when this rule matches. + + + + + Gets a collection of filters to be checked before writing to targets. + + + + + Gets or sets a value indicating whether to quit processing any further rule when this one matches. + + + + + Gets or sets logger name pattern. + + + Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends but not anywhere else. + + + + + Gets the collection of log levels enabled by this rule. + + Factory for locating methods. @@ -2292,16 +2545,6 @@ The type of the class marker attribute. The type of the method marker attribute. - - - Gets a collection of all registered items in the factory. - - - Sequence of key/value pairs where each key represents the name - of the item and value is the of - the item. - - Scans the assembly for classes marked with @@ -2353,23 +2596,15 @@ The result. A value of true if the method was found, false otherwise. - + - Attaches a simple name to an item (such as , - , , etc.). + Gets a collection of all registered items in the factory. - - - - Initializes a new instance of the class. - - The name of the item. - - - - Gets the name of the item. - - The name of the item. + + Sequence of key/value pairs where each key represents the name + of the item and value is the of + the item. + @@ -2413,26 +2648,6 @@ Prevents a default instance of the class from being created. - - - Gets the element name. - - - - - Gets the dictionary of attribute values. - - - - - Gets the collection of child elements. - - - - - Gets the value of the element. - - Returns children elements with the specified element name. @@ -2478,6 +2693,26 @@ The allowed names. + + + Gets the element name. + + + + + Gets the dictionary of attribute values. + + + + + Gets the collection of child elements. + + + + + Gets the value of the element. + + Attribute used to mark the required parameters for targets, @@ -2573,36 +2808,38 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. Ignore any errors during configuration. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. Ignore any errors during configuration. - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. @@ -2613,22 +2850,22 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). @@ -2636,36 +2873,35 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). Ignore any errors during configuration. - The to which to apply any applicable configuration values. - - - - Did the Succeeded? true= success, false= error, null = initialize not started yet. - - - - - Gets or sets a value indicating whether all of the configuration files - should be watched for changes and reloaded automatically when changed. - - - - - Gets the collection of file names which should be watched for changes by NLog. - This is the list of configuration files processed. - If the autoReload attribute is not set it returns empty collection. - + The to which to apply any applicable configuration values. - Re-reads the original configuration file and returns the new object. + Re-reads the original configuration file and returns the new object. + + The new object. + + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. - The new object. @@ -2746,6 +2982,24 @@ + + + Did the Succeeded? true= success, false= error, null = initialize not started yet. + + + + + Gets or sets a value indicating whether all of the configuration files + should be watched for changes and reloaded automatically when changed. + + + + + Gets the collection of file names which should be watched for changes by NLog. + This is the list of configuration files processed. + If the autoReload attribute is not set it returns empty collection. + + Matches when the specified condition is met. @@ -2755,23 +3009,6 @@ described here. - - - Gets or sets the condition expression. - - - - - - Checks whether log event should be logged or not. - - Log event. - - - if the log event should be ignored
- - if the filter doesn't want to decide
- - if the log event should be logged
- .
-
An abstract filter class. Provides a way to eliminate log messages @@ -2780,15 +3017,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets the action to be taken when filter matches. - - - Gets the result of evaluating filter against given log event. @@ -2807,6 +3038,29 @@ - if the log event should be logged
. + + + Gets or sets the action to be taken when filter matches. + + + + + + Checks whether log event should be logged or not. + + Log event. + + - if the log event should be ignored
+ - if the filter doesn't want to decide
+ - if the log event should be logged
+ .
+
+ + + Gets or sets the condition expression. + + + Marks class as a layout renderer and assigns a name to it. @@ -2814,7 +3068,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the filter. @@ -2855,7 +3109,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -2871,6 +3125,17 @@ This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. + + Log event. + + - if the log event should be ignored
+ - if the filter doesn't want to decide
+ - if the log event should be logged
+ .
+
Gets or sets a value indicating whether to ignore case when comparing strings. @@ -2883,7 +3148,13 @@ - + + + Matches when the calculated layout is equal to the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. @@ -2894,12 +3165,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout is equal to the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - Gets or sets a value indicating whether to ignore case when comparing strings. @@ -2912,7 +3177,13 @@ - + + + Matches when the calculated layout does NOT contain the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. @@ -2923,12 +3194,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout does NOT contain the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - Gets or sets the substring to be matched. @@ -2941,7 +3206,18 @@ - + + + Matches when the calculated layout is NOT equal to the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + + + Initializes a new instance of the class. + + + Checks whether log event should be logged or not. @@ -2952,17 +3228,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout is NOT equal to the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - - - - Initializes a new instance of the class. - - Gets or sets a string to compare the layout to. @@ -2975,17 +3240,6 @@ - - - Checks whether log event should be logged or not. - - Log event. - - - if the log event should be ignored
- - if the filter doesn't want to decide
- - if the log event should be logged
- .
-
A fluent class to build log events for NLog. @@ -3004,11 +3258,6 @@ The to send the log event. The for the log event. - - - Gets the created by the builder. - - Sets the information of the logging event. @@ -3139,6 +3388,11 @@ If condition is true, write log event; otherwise ignore event. + + + Gets the created by the builder. + + Extension methods for NLog . @@ -3291,6 +3545,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3314,896 +3574,11 @@ Provides logging interface and utility functions. - - - 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 . - - - - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Trace level. - - Type of the value. - The value to be written. - - - - 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 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 Trace level. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Trace level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Trace level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 Trace level. - - Log message. - - - - Writes the diagnostic message at the Trace level using the specified parameters. - - A containing format items. - Arguments to format. - - - - 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 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 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 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. - 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 Trace level using the specified parameters. - - 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 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. - 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 Trace 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 Debug level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Debug level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Debug level. - - 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Debug level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Debug level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Debug 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 Debug level. - - Log message. - - - - Writes the diagnostic message at the Debug level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Debug level. - - A to be written. - An exception to be logged. - - - - 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 Debug 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 Debug 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 first argument to format. - The second argument to format. - - - - Writes the diagnostic message at the Debug level using the specified parameters. - - 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. - - 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. - - 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. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Info level. - - 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Info level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Info level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Info 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 Info level. - - Log message. - - - - Writes the diagnostic message at the Info level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Info level. - - A to be written. - An exception to be logged. - - - - 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 Info 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 Info 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 first argument to format. - The second argument to format. - - - - Writes the diagnostic message at the Info level using the specified parameters. - - 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 Info 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 Info 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 Warn level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Warn level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Warn level. - - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - - - - Writes the diagnostic message at the Warn 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 Warn level. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Warn level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Warn level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Warn 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 Warn level. - - Log message. - - - - Writes the diagnostic message at the Warn level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Warn level. - - A to be written. - An exception to be logged. - - - - 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 containing one format item. - The argument to format. - - - - Writes the diagnostic message at the Warn 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 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 first argument to format. - The second argument to format. - - - - 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 first argument to format. - The second argument to format. - - - - 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 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. - - 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. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Error level. - - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - - - - Writes the diagnostic message at the Error 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Error level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Error level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 format items. - Arguments to format. - - - - Writes the diagnostic message at the Error level. - - Log message. - - - - Writes the diagnostic message at the Error level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Error level. - - A to be written. - An exception to be logged. - - - - 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 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 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 first argument to format. - The second argument to format. - - - - 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 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. - - 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 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 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 Fatal level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Fatal 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Fatal level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Fatal level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 format items. - Arguments to format. - - - - Writes the diagnostic message at the Fatal level. - - Log message. - - - - Writes the diagnostic message at the Fatal level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Fatal level. - - A to be written. - An exception to be logged. - - - - 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 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 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 first argument to format. - The second 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. - A containing one format item. - 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. - - 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. - Logger with only generic methods (passing 'LogLevel' to methods) and core properties. - - - 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 specified level. @@ -4379,6 +3754,963 @@ The second argument to format. The third argument to format. + + + Occurs when logger configuration changes. + + + + + Gets the name of the logger. + + + + + Gets the factory that created this logger. + + + + + Provides an interface to execute System.Actions without surfacing any exceptions raised for that action. + + + + + Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. + + Action to execute. + + + + Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. + The exception is not propagated outside of this method; a default value is returned instead. + + Return type of the provided function. + Function to run. + Result returned by the provided function or the default value of type in case of exception. + + + + Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. + The exception is not propagated outside of this method; a fallback value is returned instead. + + Return type of the provided function. + Function to run. + Fallback value to return in case of exception. + Result returned by the provided function or fallback value in case of exception. + + + + Writes the diagnostic message at the Trace level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Trace level. + + Type of the value. + The value to be written. + + + + 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 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 Trace level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Trace level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 Trace level. + + Log message. + + + + Writes the diagnostic message at the Trace level using the specified parameters. + + A containing format items. + Arguments to format. + + + + 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 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 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 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. + 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 Trace level using the specified parameters. + + 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 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. + 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 Trace 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 Debug level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Debug level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Debug level. + + 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Debug level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Debug 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 Debug level. + + Log message. + + + + Writes the diagnostic message at the Debug level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + + + + 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 Debug 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 Debug 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 first argument to format. + The second argument to format. + + + + Writes the diagnostic message at the Debug level using the specified parameters. + + 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. + + 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. + + 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. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Info level. + + 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Info level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Info 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 Info level. + + Log message. + + + + Writes the diagnostic message at the Info level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + + + + 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 Info 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 Info 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 first argument to format. + The second argument to format. + + + + Writes the diagnostic message at the Info level using the specified parameters. + + 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 Info 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 Info 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 Warn level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Warn level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Warn level. + + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. + + + + Writes the diagnostic message at the Warn 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 Warn level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Warn level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Warn 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 Warn level. + + Log message. + + + + Writes the diagnostic message at the Warn level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + + + + 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 containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Warn 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 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 first argument to format. + The second argument to format. + + + + 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 first argument to format. + The second argument to format. + + + + 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 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. + + 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. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Error level. + + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. + + + + Writes the diagnostic message at the Error 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Error level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 format items. + Arguments to format. + + + + Writes the diagnostic message at the Error level. + + Log message. + + + + Writes the diagnostic message at the Error level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + + + + 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 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 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 first argument to format. + The second argument to format. + + + + 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 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. + + 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 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 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 Fatal level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Fatal 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Fatal level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 format items. + Arguments to format. + + + + Writes the diagnostic message at the Fatal level. + + Log message. + + + + Writes the diagnostic message at the Fatal level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + + + + 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 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 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 first argument to format. + The second 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. + A containing one format item. + 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. + + 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. + + + + 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 . + Provides untyped IDictionary interface on top of generic IDictionary. @@ -4392,6 +4724,56 @@ The implementation. + + + Adds an element with the provided key and value to the object. + + The to use as the key of the element to add. + The to use as the value of the element to add. + + + + Removes all elements from the object. + + + + + Determines whether the object contains an element with the specified key. + + The key to locate in the object. + + True if the contains an element with the key; otherwise, false. + + + + + Returns an object for the object. + + + An object for the object. + + + + + Removes the element with the specified key from the object. + + The key of the element to remove. + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in at which copying begins. + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + Gets an object containing the values in the object. @@ -4459,56 +4841,6 @@ Dictionary key. Value corresponding to key or null if not found - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - - - - Removes all elements from the object. - - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - True if the contains an element with the key; otherwise, false. - - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in at which copying begins. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - Wrapper IDictionaryEnumerator. @@ -4516,10 +4848,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped. + + + Advances the enumerator to the next element of the collection. + + + True if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. + + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + Gets both the key and the value of the current dictionary entry. @@ -4556,19 +4901,6 @@ The current element in the collection. - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - UTF-8 BOM 239, 187, 191 @@ -4655,6 +4987,11 @@ Adapter for to + + + Interface for fakeable the current . Not fully implemented, please methods/properties as necessary. + + Initializes a new instance of the class. @@ -4666,11 +5003,6 @@ Gets a the current wrappered in a . - - - Interface for fakeable the current . Not fully implemented, please methods/properties as necessary. - - Base class for optimized file appenders. @@ -4678,11 +5010,56 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The create parameters. + + + Writes the specified bytes. + + The bytes. + + + + Flushes this instance. + + + + + Closes this instance. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Releases unmanaged and - optionally - managed resources. + + True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Updates the last write time of the file. + + + + + Updates the last write time of the file to the specified date. + + Date and time when the last write occurred in UTC. + + + + Creates the file stream. + + If set to true sets the file stream to allow shared writing. + A object which can be used to write to the file. + Gets the path of the file, including file extension. @@ -4713,57 +5090,6 @@ The file creation parameters. - - - Writes the specified bytes. - - The bytes. - - - - Flushes this instance. - - - - - Closes this instance. - - - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged and - optionally - managed resources. - - True to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Updates the last write time of the file. - - - - - Updates the last write time of the file to the specified date. - - Date and time when the last write occurred in UTC. - - - - Creates the file stream. - - If set to true sets the file stream to allow shared writing. - A object which can be used to write to the file. - Implementation of which caches @@ -4772,7 +5098,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -4787,12 +5113,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -4804,6 +5124,19 @@ Factory class which creates objects. + + + Interface implemented by all factories capable of creating file appenders. + + + + + 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. + Opens the appender for given file name and parameters. @@ -4842,21 +5175,6 @@ Factory used to create each appender. Parameters used for creating a file. - - - Gets the parameters which will be used for creating a file. - - - - - Gets the file appender factory used by all the appenders in this list. - - - - - Gets the number of appenders which the list can hold. - - It allocates the first slot in the list when the file name does not already in the list and clean up any @@ -4868,14 +5186,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -4892,18 +5202,26 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. + + + + Gets the parameters which will be used for creating a file. + + + + + Gets the file appender factory used by all the appenders in this list. + + + + + Gets the number of appenders which the list can hold. + @@ -4954,19 +5272,11 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - + - Interface implemented by all factories capable of creating file appenders. + Should we capture the last write time of a file? - - - 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 @@ -4975,7 +5285,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -4996,12 +5306,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5024,7 +5328,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -5045,12 +5349,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5112,6 +5410,72 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -5132,18 +5496,6 @@ If is null and isn't a already, then the will get a locked by - - - 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 object initialization and termination. @@ -5170,6 +5522,22 @@ 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. @@ -5177,17 +5545,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The targets by level. Use the old exception log handling of NLog 3.0? - - - Use the old exception log handling of NLog 3.0? - - Gets targets for the specified level. @@ -5204,51 +5567,16 @@ A value of true if the specified level is enabled; otherwise, false. + + + Use the old exception log handling of NLog 3.0? + + Network sender which uses HTTP or HTTPS POST. - - - Initializes a new instance of the class. - - The network URL. - - - - Actually sends the given text over the specified protocol. - - The bytes to be sent. - Offset in buffer. - Number of bytes to send. - The async continuation to be invoked after the buffer has been sent. - To be overridden in inheriting classes. - - - - Creates instances of objects for given URLs. - - - - - Creates a new instance of the network sender based on a network URL. - - - URL that determines the network sender to be created. - - - The maximum queue size. - - - A newly created network sender. - - - - - Interface for mocking socket calls. - - A base class for all network senders. Supports one-way sending of messages @@ -5257,7 +5585,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The network URL. @@ -5266,16 +5594,6 @@ Finalizes an instance of the NetworkSender class. - - - Gets the address of the network endpoint. - - - - - Gets the last send time. - - Initializes this network sender. @@ -5342,6 +5660,56 @@ The address family. Parsed endpoint. + + + Gets the address of the network endpoint. + + + + + Gets the last send time. + + + + + Initializes a new instance of the class. + + The network URL. + + + + Actually sends the given text over the specified protocol. + + The bytes to be sent. + Offset in buffer. + Number of bytes to send. + The async continuation to be invoked after the buffer has been sent. + To be overridden in inheriting classes. + + + + Creates instances of objects for given URLs. + + + + + Creates a new instance of the network sender based on a network URL. + + + URL that determines the network sender to be created. + + + The maximum queue size. + + + A newly created network sender. + + + + + Interface for mocking socket calls. + + Default implementation of . @@ -5374,11 +5742,6 @@ Type of the socket. Type of the protocol. - - - Gets underlying socket instance. - - Closes the wrapped socket. @@ -5403,6 +5766,11 @@ Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + Gets underlying socket instance. + + Sends messages over a TCP network connection. @@ -5422,7 +5790,7 @@ The address family. Type of the socket. Type of the protocol. - Instance of which represents the socket. + Instance of which represents the socket. @@ -5492,6 +5860,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -5517,6 +5894,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -5630,20 +6012,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The text to be tokenized. - - - Current position in - - - - - Full text to be parsed - - Check current char while not changing the position. @@ -5664,6 +6036,16 @@ + + + Current position in + + + + + Full text to be parsed + + Implements a single-call guard around given continuation function. @@ -5686,15 +6068,6 @@ Provides helpers to sort log events and associated continuations. - - - Key selector delegate. - - The type of the value. - The type of the key. - Value to extract key information from. - Key selected from log event. - Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. @@ -5707,6 +6080,94 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + + + + Key selector delegate. + + The type of the value. + The type of the key. + Value to extract key information from. + Key selected from log event. + + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -5724,6 +6185,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -5746,6 +6223,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -5771,11 +6264,17 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The target. The filter chain. + + + Gets the stack trace usage. + + A value that determines stack trace handling. + Gets the target. @@ -5795,12 +6294,6 @@ The next item in the chain. This is for example the 'target2' logger in writeTo='target1,target2' - - - Gets the stack trace usage. - - A value that determines stack trace handling. - Helper for dealing with thread-local storage. @@ -5910,560 +6403,16 @@ - - - Provides an interface to execute System.Actions without surfacing any exceptions raised for that action. - - - - - Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. - - Action to execute. - - - - Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. - The exception is not propagated outside of this method; a default value is returned instead. - - Return type of the provided function. - Function to run. - Result returned by the provided function or the default value of type in case of exception. - - - - Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. - The exception is not propagated outside of this method; a fallback value is returned instead. - - Return type of the provided function. - Function to run. - Fallback value to return in case of exception. - Result returned by the provided function or fallback value in case of exception. - Log event context data. - - - Initializes a new instance of the class. - - - - - Gets or sets string that will be used to separate key/value pairs. - - - - - - Gets or sets how key/value pairs will be formatted. - - - - - - Renders all log event's properties and appends them to the specified . - - The to append the rendered data to. - Logging event. - - - - Designates a property of the class as an ambient property. - - - non-ambient: ${uppercase:${level}} - ambient : ${level:uppercase} - - - - - Initializes a new instance of the class. - - Ambient property name. - - - - Assembly version. - - - - - Renders assembly version and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - The call site (class name, method name and source information). - - - - - Initializes a new instance of the class. - - - - - 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 the method name will be cleaned up if it is detected as an anonymous delegate. - - - - - - Gets or sets the number of frames to skip. - - - - - Gets the level of stack trace information required by the implementing class. - - - - - Renders the call site and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - A counter value (increases on each layout rendering). - - - - - Initializes a new instance of the class. - - - - - 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. - - - - - - Renders the specified counter value and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Current date and time. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the culture used for rendering. - - - - - - Gets or sets the date format. Can be any argument accepted by DateTime.ToString(format). - - - - - - Gets or sets a value indicating whether to output UTC time instead of local time. - - - - - - Renders the current date and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - URI of the HTML page which hosts the current Silverlight application. - - - - - Renders the specified environmental information and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Log event context data. - - - - - Gets or sets the name of the item. - - - - - - Renders the specified log event context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Log event context data. See . - - - - - Log event context data with default options. - - - - - Gets or sets the name of the item. - - - - - - Format string for conversion from object to string. - - - - - Gets or sets the culture used for rendering. - - - - - - Renders the specified log event context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Exception information provided through - a call to one of the Logger.*Exception() methods. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the format of the output. Must be a comma-separated list of exception - properties: Message, Type, ShortType, ToString, Method, StackTrace. - This parameter value is case-insensitive. - - - - - - - - Gets or sets the format of the output of inner exceptions. Must be a comma-separated list of exception - properties: Message, Type, ShortType, ToString, Method, StackTrace. - This parameter value is case-insensitive. - - - - - - Gets or sets the separator used to concatenate parts specified in the Format. - - - - - - Gets or sets the maximum number of inner exceptions to include in the output. - By default inner exceptions are not enabled for compatibility with NLog 1.0. - - - - - - Gets or sets the separator between inner exceptions. - - - - - - Gets the formats of the output of inner exceptions to be rendered in target. - - - - - - - Gets the formats of the output to be rendered in target. - - - - - - - Renders the specified exception information and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Appends the Message of an Exception to the specified . - - The to append the rendered data to. - The exception containing the Message to append. - - - - Appends the method name from Exception's stack trace to the specified . - - The to append the rendered data to. - The Exception whose method name should be appended. - - - - Appends the stack trace from an Exception to the specified . - - The to append the rendered data to. - The Exception whose stack trace should be appended. - - - - Appends the result of calling ToString() on an Exception to the specified . - - The to append the rendered data to. - The Exception whose call to ToString() should be appended. - - - - Appends the type of an Exception to the specified . - - The to append the rendered data to. - The Exception whose type should be appended. - - - - Appends the short type of an Exception to the specified . - - The to append the rendered data to. - The Exception whose short type should be appended. - - - - Appends the contents of an Exception's Data property to the specified . - - The to append the rendered data to. - The Exception whose Data property elements should be appended. - - - - Split the string and then compile into list of Rendering formats. - - - - - - - Find name of method on stracktrace. - - Full stracktrace - - - - - Renders contents of the specified file. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the name of the file. - - - - - - Gets or sets the encoding used in the file. - - The encoding. - - - - - Renders the contents of the specified file and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - The information about the garbage collector. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the property to retrieve. - - - - - - Renders the selected process information. - - The to append the rendered data to. - Logging event. - - - - Gets or sets the property of System.GC to retrieve. - - - - - Total memory allocated. - - - - - Total memory allocated (perform full garbage collection first). - - - - - Gets the number of Gen0 collections. - - - - - Gets the number of Gen1 collections. - - - - - Gets the number of Gen2 collections. - - - - - Maximum generation number supported by GC. - - - - - Global Diagnostics Context item. Provided for compatibility with log4net. - - - - - Gets or sets the name of the item. - - - - - - Renders the specified Global Diagnostics Context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Globally-unique identifier (GUID). - - - - - Initializes a new instance of the class. - - - - - Gets or sets the GUID format as accepted by Guid.ToString() method. - - - - - - Renders a newly generated GUID string and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Installation parameter (passed to InstallNLogConfig). - - - - - Gets or sets the name of the parameter. - - - - - - Renders the specified installation parameter and appends it to the specified . - - The to append the rendered data to. - Logging event. - Render environmental information related to logging events. - - - Gets the logging configuration this target is part of. - - Returns a that represents this instance. @@ -6508,7 +6457,7 @@ - Renders the specified environmental information and appends it to the specified . + Renders the specified environmental information and appends it to the specified . The to append the rendered data to. Logging event. @@ -6529,6 +6478,557 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + + + + Gets the logging configuration this target is part of. + + + + + Initializes a new instance of the class. + + + + + Renders all log event's properties and appends them to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets string that will be used to separate key/value pairs. + + + + + + Gets or sets how key/value pairs will be formatted. + + + + + + Designates a property of the class as an ambient property. + + + non-ambient: ${uppercase:${level}} + ambient : ${level:uppercase} + + + + + Initializes a new instance of the class. + + Ambient property name. + + + + Assembly version. + + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. + + + + Renders assembly version and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + The (full) name of the assembly. If null, using the entry assembly. + + + + + 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 the method name will be cleaned up if it is detected as an anonymous delegate. + + + + + + Gets or sets the number of frames to skip. + + + + + 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. + + + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + + + + 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. + + + + + + Gets or sets the date format. Can be any argument accepted by DateTime.ToString(format). + + + + + + Gets or sets a value indicating whether to output UTC time instead of local time. + + + + + + URI of the HTML page which hosts the current Silverlight application. + + + + + Renders the specified environmental information and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Log event context data. + + + + + Renders the specified log event context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Log event context data. See . + + + + + Log event context data with default options. + + + + + Renders the specified log event context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Format string for conversion from object to string. + + + + + Gets or sets the culture used for rendering. + + + + + + Exception information provided through + a call to one of the Logger.*Exception() methods. + + + + + Initializes a new instance of the class. + + + + + Renders the specified exception information and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Appends the Message of an Exception to the specified . + + The to append the rendered data to. + The exception containing the Message to append. + + + + Appends the method name from Exception's stack trace to the specified . + + The to append the rendered data to. + The Exception whose method name should be appended. + + + + Appends the stack trace from an Exception to the specified . + + The to append the rendered data to. + The Exception whose stack trace should be appended. + + + + Appends the result of calling ToString() on an Exception to the specified . + + The to append the rendered data to. + The Exception whose call to ToString() should be appended. + + + + Appends the type of an Exception to the specified . + + The to append the rendered data to. + The Exception whose type should be appended. + + + + Appends the short type of an Exception to the specified . + + The to append the rendered data to. + The Exception whose short type should be appended. + + + + Appends the contents of an Exception's Data property to the specified . + + The to append the rendered data to. + The Exception whose Data property elements should be appended. + + + + Split the string and then compile into list of Rendering formats. + + + + + + + Find name of method on stracktrace. + + Full stracktrace + + + + + Gets or sets the format of the output. Must be a comma-separated list of exception + properties: Message, Type, ShortType, ToString, Method, StackTrace. + This parameter value is case-insensitive. + + + + + + + + Gets or sets the format of the output of inner exceptions. Must be a comma-separated list of exception + properties: Message, Type, ShortType, ToString, Method, StackTrace. + This parameter value is case-insensitive. + + + + + + Gets or sets the separator used to concatenate parts specified in the Format. + + + + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + + + + Gets or sets the maximum number of inner exceptions to include in the output. + By default inner exceptions are not enabled for compatibility with NLog 1.0. + + + + + + Gets or sets the separator between inner exceptions. + + + + + + Gets the formats of the output of inner exceptions to be rendered in target. + + + + + + + Gets the formats of the output to be rendered in target. + + + + + + + Renders contents of the specified file. + + + + + Initializes a new instance of the class. + + + + + Renders the contents of the specified file and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the file. + + + + + + Gets or sets the encoding used in the file. + + 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. + + + + + Total memory allocated. + + + + + Total memory allocated (perform full garbage collection first). + + + + + Gets the number of Gen0 collections. + + + + + Gets the number of Gen1 collections. + + + + + Gets the number of Gen2 collections. + + + + + Maximum generation number supported by GC. + + + + + Global Diagnostics Context item. Provided for compatibility with log4net. + + + + + Renders the specified Global Diagnostics Context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Globally-unique identifier (GUID). + + + + + Initializes a new instance of the class. + + + + + Renders a newly generated GUID string and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the GUID format as accepted by Guid.ToString() method. + + + + + + Installation parameter (passed to InstallNLogConfig). + + + + + Renders the specified installation parameter and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the parameter. + + + Marks class as a layout renderer and assigns a name to it. @@ -6537,7 +7037,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the layout renderer, without the `${ }` @@ -6548,7 +7048,7 @@ - Renders the current log level and appends it to the specified . + Renders the current log level and appends it to the specified . The to append the rendered data to. Logging event. @@ -6564,29 +7064,29 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The literal text value. This is used by the layout compiler. + + + Renders the specified string literal and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the literal text. - - - Renders the specified string literal and appends it to the specified . - - The to append the rendered data to. - Logging event. - XML event description compatible with log4j, Chainsaw and NLogViewer. @@ -6594,14 +7094,21 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the XML logging event and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -6636,13 +7143,13 @@ Gets or sets a value indicating whether to include contents of the dictionary. - + Gets or sets a value indicating whether to include contents of the stack. - + @@ -6655,67 +7162,60 @@ Gets the level of stack trace information required by the implementing class. - - - Renders the XML logging event and appends it to the specified . - - The to append the rendered data to. - Logging event. - The logger name. + + + Renders the logger name and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to render short logger name (the part after the trailing dot character). - - - Renders the logger name and appends it to the specified . - - The to append the rendered data to. - Logging event. - The date and time in a long, sortable format yyyy-MM-dd HH:mm:ss.mmm. + + + Renders the date in the long format (yyyy-MM-dd HH:mm:ss.mmm) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders the date in the long format (yyyy-MM-dd HH:mm:ss.mmm) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Mapped Diagnostic Context item. Provided for compatibility with log4net. + + + Renders the specified MDC item and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the name of the item. - - - Renders the specified MDC item and appends it to the specified . - - The to append the rendered data to. - Logging event. - The formatted log message. @@ -6723,9 +7223,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the log message including any positional parameters and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to log exception along with message. @@ -6738,13 +7245,6 @@ - - - Renders the log message including any positional parameters and appends it to the specified . - - The to append the rendered data to. - Logging event. - Nested Diagnostic Context item. Provided for compatibility with log4net. @@ -6752,9 +7252,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the specified Nested Diagnostics Context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the number of top stack frames to be rendered. @@ -6773,13 +7280,6 @@ - - - Renders the specified Nested Diagnostics Context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - A newline literal. @@ -6787,7 +7287,7 @@ - Renders the specified string literal and appends it to the specified . + Renders the specified string literal and appends it to the specified . The to append the rendered data to. Logging event. @@ -6799,36 +7299,37 @@ - Renders the current process running time and appends it to the specified . + Renders the current process running time and appends it to the specified . The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + The short date in a sortable format yyyy-MM-dd. + + + Renders the current short date string (yyyy-MM-dd) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders the current short date string (yyyy-MM-dd) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Appends a date in format yyyy-MM-dd to the StringBuilder. @@ -6850,12 +7351,6 @@ Initializes a new instance of the class. - - - Gets or sets specific information to display. - - - Renders the specified environmental information and appends it to the specified . @@ -6863,6 +7358,12 @@ The to append the rendered data to. Logging event. + + + Gets or sets specific information to display. + + + Specifies application information to display in ${sl-appinfo} renderer. @@ -6893,6 +7394,13 @@ System special folder path (includes My Documents, My Music, Program Files, Desktop, and more). + + + Renders the directory where NLog is located and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the system special folder to use. @@ -6924,13 +7432,6 @@ - - - Renders the directory where NLog is located and appends it to the specified . - - The to append the rendered data to. - Logging event. - Format of the ${stacktrace} layout renderer output. @@ -6958,9 +7459,16 @@ - 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 to append the rendered data to. + Logging event. + Gets or sets the output format of the stack trace. @@ -6991,18 +7499,18 @@ - - - Renders the call site and appends it to the specified . - - The to append the rendered data to. - Logging event. - A temporary directory. + + + Renders the directory where NLog is located 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 the directory name. @@ -7015,13 +7523,6 @@ - - - Renders the directory where NLog is located and appends it to the specified . - - The to append the rendered data to. - Logging event. - The identifier of the current thread. @@ -7029,7 +7530,7 @@ - Renders the current thread identifier and appends it to the specified . + Renders the current thread identifier and appends it to the specified . The to append the rendered data to. Logging event. @@ -7041,7 +7542,7 @@ - Renders the current thread name and appends it to the specified . + Renders the current thread name and appends it to the specified . The to append the rendered data to. Logging event. @@ -7053,7 +7554,7 @@ - Renders the ticks value of current time and appends it to the specified . + Renders the ticks value of current time and appends it to the specified . The to append the rendered data to. Logging event. @@ -7063,37 +7564,24 @@ The time in a 24-hour, sortable format HH:mm:ss.mmm. + + + Renders time in the 24-h format (HH:mm:ss.mmm) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders time in the 24-h format (HH:mm:ss.mmm) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Render a NLog variable (xml or config) - - - Gets or sets the name of the NLog variable. - - - - - - Gets or sets the default value to be used when the variable is not set. - - Not used if Name is null - - Initializes the layout renderer. @@ -7108,11 +7596,24 @@ - Renders the specified variable and appends it to the specified . + Renders the specified variable and appends it to the specified . The to append the rendered data to. Logging event. + + + Gets or sets the name of the NLog variable. + + + + + + Gets or sets the default value to be used when the variable is not set. + + Not used if Name is null + + Applies caching to another layout output. @@ -7121,36 +7622,52 @@ The value of the inner layout will be rendered only once and reused subsequently. - + - A value indicating when the cache is cleared. + Base class for s which wrapping other s. + + This has the property (which is default) and can be used to wrap. + + ${uppercase:${level}} //[DefaultParameter] + ${uppercase:Inner=${level}} + - - Never clear the cache. + + + Renders the inner message, processes it and appends it to the specified . + + The to append the rendered data to. + Logging event. - - Clear the cache whenever the is initialized. + + + Transforms the output of another layout. + + Output to be transform. + If the is needed, overwrite . + Transformed text. - - Clear the cache whenever the is closed. + + + Renders the inner layout contents. + + The log event. + Contents of inner layout. + + + + Gets or sets the wrapped layout. + + [DefaultParameter] so Inner: is not required if it's the first + + Initializes a new instance of the class. - - - Gets or sets a value indicating whether this is enabled. - - - - - - Gets or sets a value indicating when the cache is cleared. - - Initializes the layout renderer. @@ -7175,6 +7692,36 @@ The log event. Contents of inner layout. + + + Gets or sets a value indicating whether this is enabled. + + + + + + Gets or sets a value indicating when the cache is cleared. + + + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + + + + A value indicating when the cache is cleared. + + + + Never clear the cache. + + + Clear the cache whenever the is initialized. + + + Clear the cache whenever the is closed. + Filters characters not allowed in the file names by replacing them with safe character. @@ -7182,16 +7729,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - 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 '_'). - - - Post-processes the rendered message. @@ -7199,6 +7739,13 @@ The text to be post-processed. Padded and trimmed string. + + + 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 '_'). + + + Escapes output of another layout using JSON rules. @@ -7206,15 +7753,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets a value indicating whether to apply JSON encoding. - - - Post-processes the rendered message. @@ -7222,6 +7763,12 @@ The text to be post-processed. JSON-encoded string. + + + Gets or sets a value indicating whether to apply JSON encoding. + + + Converts the result of another layout output to lower case. @@ -7229,9 +7776,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Post-processes the rendered message. + + The text to be post-processed. + Padded and trimmed string. + Gets or sets a value indicating whether lower case conversion should be applied. @@ -7245,13 +7799,6 @@ - - - Post-processes the rendered message. - - The text to be post-processed. - Padded and trimmed string. - Only outputs the inner layout when exception has been defined for log message. @@ -7297,9 +7844,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Transforms the output of another layout. + + Output to be transform. + Transformed text. + Gets or sets the number of characters to pad the output to. @@ -7326,19 +7880,12 @@ Gets or sets a value indicating whether a value that has - been truncated (when is true) + been truncated (when is true) will be left-aligned (characters removed from the right) or right-aligned (characters removed from the left). The default is left alignment. - - - Transforms the output of another layout. - - Output to be transform. - Transformed text. - Replaces a string in the output of another layout with another string. @@ -7347,6 +7894,28 @@ ${replace:searchFor=\\n+:replaceWith=-:regex=true:inner=${message}} + + + Initializes the layout renderer. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + A match evaluator for Regular Expression based replacing + + Input string. + Group name in the regex. + Replace value. + Match from regex. + Groups replaced with . + Gets or sets the text to search for. @@ -7390,33 +7959,11 @@ A value of true if whole words should be searched for; otherwise, false. - - - Initializes the layout renderer. - - - - - Post-processes the rendered message. - - The text to be post-processed. - Post-processed text. - This class was created instead of simply using a lambda expression so that the "ThreadAgnosticAttributeTest" will pass - - - A match evaluator for Regular Expression based replacing - - Input string. - Group name in the regex. - Replace value. - Match from regex. - Groups replaced with . - Replaces newline characters from the result of another layout renderer with spaces. @@ -7424,12 +7971,7 @@ - Initializes a new instance of the class. - - - - - Gets or sets a value indicating the string that should be used for separating lines. + Initializes a new instance of the class. @@ -7439,6 +7981,11 @@ The text to be post-processed. String with newline characters replaced with spaces. + + + Gets or sets a value indicating the string that should be used for separating lines. + + Decodes text "encrypted" with ROT-13. @@ -7447,14 +7994,6 @@ See http://en.wikipedia.org/wiki/ROT13. - - - Gets or sets the layout to be wrapped. - - The layout to be wrapped. - This variable is for backwards compatibility - - Encodes/Decodes ROT-13-encoded string. @@ -7469,6 +8008,14 @@ Output to be transform. Transformed text. + + + Gets or sets the layout to be wrapped. + + The layout to be wrapped. + This variable is for backwards compatibility + + Trims the whitespace from the result of another layout renderer. @@ -7476,16 +8023,9 @@ - Initializes a new instance of the class. + 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. - - Post-processes the rendered message. @@ -7493,6 +8033,13 @@ The text to be post-processed. Trimmed string. + + + 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. + + Converts the result of another layout output to upper case. @@ -7505,9 +8052,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Post-processes the rendered message. + + The text to be post-processed. + Padded and trimmed string. + Gets or sets a value indicating whether upper case conversion should be applied. @@ -7521,13 +8075,6 @@ - - - Post-processes the rendered message. - - The text to be post-processed. - Padded and trimmed string. - Encodes the result of another layout output for use with URLs. @@ -7535,16 +8082,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - 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. - - Transforms the output of another layout. @@ -7552,17 +8092,18 @@ Output to be transform. Transformed 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. + + Outputs alternative layout when the inner layout produces empty result. - - - Gets or sets the layout to be rendered when original layout produced empty result. - - - Transforms the output of another layout. @@ -7579,17 +8120,17 @@ Contents of inner layout. + + + Gets or sets the layout to be rendered when original layout produced empty result. + + + Only outputs the inner layout when the specified condition has been met. - - - Gets or sets the condition that must be met for the inner layout to be printed. - - - Transforms the output of another layout. @@ -7606,47 +8147,43 @@ Contents of inner layout. - + - Base class for s which wrapping other s. - - This has the property (which is default) and can be used to wrap. + Gets or sets the condition that must be met for the layout to be printed. - - ${uppercase:${level}} //[DefaultParameter] - ${uppercase:Inner=${level}} - + - + - Gets or sets the wrapped layout. - - [DefaultParameter] so Inner: is not required if it's the first + If is not met, print this layout. + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + - - - Renders the inner message, processes it and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Transforms the output of another layout. - - Output to be transform. - If the is needed, overwrite . - Transformed text. - - - - Renders the inner layout contents. - - The log event. - Contents of inner layout. - Converts the result of another layout output to be XML-compliant. @@ -7654,15 +8191,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets a value indicating whether to apply XML encoding. - - - Post-processes the rendered message. @@ -7670,241 +8201,17 @@ The text to be post-processed. Padded and trimmed string. - + - A column in the CSV. + Gets or sets a value indicating whether to apply XML encoding. + - + - Initializes a new instance of the class. + A layout containing one or more nested layouts. - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - Initializes a new instance of the class. - - - - - Gets the array of parameters to be passed. - - - - - - Gets or sets a value indicating whether CVS should include header. - - A value of true if CVS should include header; otherwise, false. - - - - - Gets or sets the column delimiter. - - - - - - Gets or sets the quoting mode. - - - - - - Gets or sets the quote Character. - - - - - - Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). - - - - - - Initializes the layout. - - - - - Formats the log event for write. - - The log event to be formatted. - A string representation of the log event. - - - - Header for CSV layout. - - - - - Initializes a new instance of the class. - - The parent. - - - - Renders the layout for the specified logging event by invoking layout renderers. - - The logging event. - The rendered layout. - - - - Specifies CSV quoting modes. - - - - - Quote all column. - - - - - Quote nothing. - - - - - Quote only whose values contain the quote symbol or - the separator. - - - - - JSON attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the attribute. - The layout of the attribute's value. - - - - Initializes a new instance of the class. - - The name of the attribute. - The layout of the attribute's value. - Encode value with json-encode - - - - Gets or sets the name of the attribute. - - - - - Gets or sets the layout that will be rendered as the attribute's value. - - - - - Determines wether or not this attribute will be Json encoded. - - - - - A specialized layout that renders JSON-formatted events. - - - - - Initializes a new instance of the class. - - - - - Gets the array of attributes' configurations. - - - - - - Gets or sets the option to suppress the extra spaces in the output json - - - - - Formats the log event as a JSON document for writing. - - The log event to be formatted. - A JSON string representation of the log event. - Abstract interface that layouts must implement. @@ -7921,24 +8228,9 @@ See and . - - - Gets a value indicating whether this layout is thread-agnostic (can be rendered on any thread). - - - Layout is thread-agnostic if it has been marked with [ThreadAgnostic] attribute and all its children are - like that as well. - Thread-agnostic layouts only use contents of for its output. - - - - - Gets the logging configuration this target is part of. - - - Converts a given text to a . + Converts a given text to a . Text to be converted. object represented by the text. @@ -8018,27 +8310,136 @@ The logging event. The rendered layout. - + - Marks class as a layout renderer and assigns a format string to it. + Gets a value indicating whether this layout is thread-agnostic (can be rendered on any thread). + + + Layout is thread-agnostic if it has been marked with [ThreadAgnostic] attribute and all its children are + like that as well. + Thread-agnostic layouts only use contents of for its output. + + + + + Gets the logging configuration this target is part of. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - Layout name. - + - Parses layout strings. + Initializes the layout. + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + A specialized layout that supports header and footer. + + + Renders the layout for the specified logging event by invoking layout renderers. + + The logging event. + The rendered layout. + Gets or sets the body layout (can be repeated multiple times). @@ -8057,13 +8458,194 @@ - + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event for write. + + The log event to be formatted. + A string representation of the log event. + + + + Get the headers with the column names. + + + + + + Gets the array of parameters to be passed. + + + + + + Gets or sets a value indicating whether CVS should include header. + + A value of true if CVS should include header; otherwise, false. + + + + + Gets or sets the column delimiter. + + + + + + Gets or sets the quoting mode. + + + + + + Gets or sets the quote Character. + + + + + + Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + + + + + + Header with column names for CSV layout. + + + + + Initializes a new instance of the class. + + The parent. + + Renders the layout for the specified logging event by invoking layout renderers. The logging event. The rendered layout. + + + Specifies CSV quoting modes. + + + + + Quote all column. + + + + + Quote nothing. + + + + + Quote only whose values contain the quote symbol or + the separator. + + + + + JSON attribute. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the attribute. + The layout of the attribute's value. + + + + Initializes a new instance of the class. + + The name of the attribute. + The layout of the attribute's value. + Encode value with json-encode + + + + Gets or sets the name of the attribute. + + + + + Gets or sets the layout that will be rendered as the attribute's value. + + + + + Determines wether or not this attribute will be Json encoded. + + + + + A specialized layout that renders JSON-formatted events. + + + + + Initializes a new instance of the class. + + + + + Formats the log event as a JSON document for writing. + + The log event to be formatted. + A JSON string representation of the log event. + + + + Gets the array of attributes' configurations. + + + + + + Gets or sets the option to suppress the extra spaces in the output json + + + + + Gets or sets the option to render the empty object value {} + + + + + Marks class as a layout renderer and assigns a format string to it. + + + + + Initializes a new instance of the class. + + Layout name. + + + + Parses layout strings. + + A specialized layout that renders Log4j-compatible XML events. @@ -8074,12 +8656,7 @@ - Initializes a new instance of the class. - - - - - Gets the instance that renders log events. + Initializes a new instance of the class. @@ -8089,6 +8666,11 @@ The logging event. The rendered layout. + + + Gets the instance that renders log events. + + Represents a string with embedded placeholders that can render contextual information. @@ -8100,12 +8682,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The layout string to parse. @@ -8116,38 +8698,6 @@ The layout string to parse. The NLog factories to use when creating references to layout renderers. - - - Original text before compile to Layout renderes - - - - - Gets or sets the layout text. - - - - - - Is the message fixed? (no Layout renderers used) - - - - - Get the fixed text. Only set when is true - - - - - Gets a collection of objects that make up this layout. - - - - - Gets the level of stack trace information required for rendering. - - Calculated when setting . - Converts a text to a simple layout. @@ -8181,7 +8731,7 @@ Evaluates the specified text by expanding all layout renderers - in new context. + in new context. The text to be evaluated. The input text with all occurrences of ${} replaced with @@ -8208,6 +8758,38 @@ The logging event. The rendered layout. + + + Original text before compile to Layout renderes + + + + + Gets or sets the layout text. + + + + + + Is the message fixed? (no Layout renderers used) + + + + + Get the fixed text. Only set when is true + + + + + Gets a collection of objects that make up this layout. + + + + + Gets the level of stack trace information required for rendering. + + Calculated when setting . + Represents the logging event. @@ -8220,12 +8802,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8233,7 +8815,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8243,7 +8825,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8252,89 +8834,6 @@ Parameter array. Exception information. - - - Gets the unique identifier of log event which is automatically generated - and monotonously increasing. - - - - - Gets or sets the timestamp of the logging event. - - - - - Gets or sets the level of the logging event. - - - - - Gets a value indicating whether stack trace has been set for this event. - - - - - Gets the stack frame of the method that did the logging. - - - - - Gets the number index of the stack frame that represents the user - code (not the NLog code). - - - - - Gets the entire stack trace. - - - - - Gets or sets the exception information. - - - - - Gets or sets the logger name. - - - - - Gets the logger short name. - - - - - Gets or sets the log message including any parameter placeholders. - - - - - Gets or sets the parameter values or null if no parameters have been specified. - - - - - Gets or sets the format provider that was provided while logging or - when no formatProvider was specified. - - - - - Gets the formatted message. - - - - - Gets the dictionary of per-event context properties. - - - - - Gets the dictionary of per-event context properties. - - Creates the null event. @@ -8424,72 +8923,111 @@ The stack trace. Index of the first user stack frame within the stack trace. + + + Gets the unique identifier of log event which is automatically generated + and monotonously increasing. + + + + + Gets or sets the timestamp of the logging event. + + + + + Gets or sets the level of the logging event. + + + + + Gets a value indicating whether stack trace has been set for this event. + + + + + Gets the stack frame of the method that did the logging. + + + + + Gets the number index of the stack frame that represents the user + code (not the NLog code). + + + + + Gets the entire stack trace. + + + + + Gets or sets the exception information. + + + + + Gets or sets the logger name. + + + + + Gets the logger short name. + + + + + Gets or sets the log message including any parameter placeholders. + + + + + Gets or sets the parameter values or null if no parameters have been specified. + + + + + Gets or sets the format provider that was provided while logging or + when no formatProvider was specified. + + + + + Gets the formatted message. + + + + + Gets the dictionary of per-event context properties. + + + + + Gets the dictionary of per-event context properties. + + Creates and manages instances of objects. - + - Occurs when logging changes. + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The config. - - - Gets the current . - - - - - Gets or sets a value indicating whether exceptions should be thrown. See also . - - A value of true if exception should be thrown; otherwise, false. - By default exceptions are not thrown under any circumstances. - - - - Gets or sets a value indicating whether should be thrown. - - If null then is used. - - A value of true if exception should be thrown; otherwise, false. - - This option is for backwards-compatiblity. - By default exceptions are not thrown under any circumstances. - - - - - - Gets or sets the current logging configuration. After setting this property all - existing loggers will be re-configured, so that there is no need to call - manually. - - - - - Gets or sets the global log threshold. Log events below this threshold are not logged. - - - - - Gets the default culture info to use as . - - - Specific culture info or null to use - - Performs application-defined tasks associated with freeing, releasing, or resetting @@ -8550,7 +9088,7 @@ Gets the specified named logger. Use to pass the type of the needed Logger. Name of the logger. - The type of the logger to create. The type must inherit from . + The type of the logger to create. The type must inherit from . The logger of type . Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. @@ -8621,9 +9159,9 @@ - Returns if logging is currently enabled. + Returns if logging is currently enabled. - A value of 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. @@ -8634,6 +9172,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -8641,6 +9184,78 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. + + + + + Occurs when logging changes. + + + + + Gets the current . + + + + + Gets or sets a value indicating whether exceptions should be thrown. See also . + + A value of true if exception should be thrown; otherwise, false. + By default exceptions are not thrown under any circumstances. + + + + Gets or sets a value indicating whether should be thrown. + + If null then is used. + + A value of true if exception should be thrown; otherwise, false. + + This option is for backwards-compatiblity. + By default exceptions are not thrown under any circumstances. + + + + + + Gets or sets the current logging configuration. After setting this property all + existing loggers will be re-configured, so that there is no need to call + manually. + + + + + Gets or sets the global log threshold. Log events below this threshold are not logged. + + + + + Gets the default culture info to use as . + + + Specific culture info or null to use + + Logger cache key. @@ -8687,7 +9302,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The factory. @@ -8741,21 +9356,6 @@ Initializes a new instance of the class. - - - 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 specified level. @@ -8956,42 +9556,6 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. - - - 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 . - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -9051,6 +9615,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -9190,6 +9761,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -9329,6 +9907,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -9468,6 +10053,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -9607,6 +10199,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -9746,6 +10345,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -10436,6 +11042,57 @@ 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. @@ -10487,6 +11144,13 @@ Stackframe with correspending index on the stracktrace + + + New item + + Index of on the stack. + A stackframe + Index of on the stack. @@ -10497,13 +11161,6 @@ A stackframe - - - New item - - Index of on the stack. - A stackframe - Defines available log levels. @@ -10544,16 +11201,6 @@ Off log level. - - - All log levels. (Trace, Debug, Info, Warn, Error, Fatal, Off) - - - - - All log levels that can be used to log events (excludes Off). (Trace, Debug, Info, Warn, Error, Fatal) - - Initializes a new instance of . @@ -10561,16 +11208,6 @@ The log level name. The log level ordinal number. - - - Gets the name of the log level. - - - - - Gets the ordinal of the log level. - - Compares two objects @@ -10689,64 +11326,36 @@ other ordinal. + + + All log levels. (Trace, Debug, Info, Warn, Error, Fatal, Off) + + + + + All log levels that can be used to log events (excludes Off). (Trace, Debug, Info, Warn, Error, Fatal) + + + + + Gets the name of the log level. + + + + + Gets the ordinal of the log level. + + Creates and manages instances of objects. - - - Delegate used to set/get the culture in use. - - Prevents a default instance of the LogManager class from being created. - - - Gets the default instance. - - - - - Occurs when logging changes. - - - - - Gets or sets a value indicating whether NLog should throw exceptions. - By default exceptions are not thrown under any circumstances. - - - - - Gets or sets a value indicating whether should be thrown. - - A value of true if exception should be thrown; otherwise, false. - - This option is for backwards-compatiblity. - 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. - - - - - Gets or sets the default culture to use. - - Gets the logger with the name of the current class. @@ -10766,7 +11375,7 @@ Gets a custom logger with the name of the current class. Use to pass the type of the needed Logger. - The logger class. The class must inherit from . + The logger class. The class must inherit from . The logger of type . This is a slow-running method. Make sure you're not doing this in a loop. @@ -10789,7 +11398,7 @@ Gets the specified named custom logger. Use to pass the type of the needed Logger. Name of the logger. - The logger class. The class must inherit from . + The logger class. The class must inherit from . The logger of type . Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. The generic way for this method is @@ -10840,7 +11449,7 @@ Checks if logging is currently enabled. - if logging is currently enabled, + if logging is currently enabled, otherwise. Logging is enabled if the number of calls is greater than or equal to calls. @@ -10856,6 +11465,54 @@ namespace but not the assembly. + + + Gets the default instance. + + + + + Occurs when logging changes. + + + + + Gets or sets a value indicating whether NLog should throw exceptions. + By default exceptions are not thrown under any circumstances. + + + + + Gets or sets a value indicating whether should be thrown. + + A value of true if exception should be thrown; otherwise, false. + + This option is for backwards-compatiblity. + 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. + + + + + Gets or sets the default culture to use. + + + + + Delegate used to set/get the culture in use. + + Returns a log message. Used to defer calculation of @@ -10934,36 +11591,6 @@ Client of ILogReceiverServer - - - Occurs when the log message processing has completed. - - - - - Occurs when Open operation has completed. - - - - - Occurs when Close operation has completed. - - - - - Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. - - - - - Gets the underlying implementation. - - - - - Gets the target endpoint for the service to which the WCF client can connect. - - Opens the client asynchronously. @@ -11016,6 +11643,36 @@ The result. + + + Occurs when the log message processing has completed. + + + + + Occurs when Open operation has completed. + + + + + Occurs when Close operation has completed. + + + + + Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. + + + + + Gets the underlying implementation. + + + + + Gets the target endpoint for the service to which the WCF client can connect. + + Gets or sets the cookie container. @@ -11037,6 +11694,14 @@ 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. @@ -11073,19 +11738,28 @@ Gets the collection of indexes into array for each layout value. - - - Converts the to . - - The object this is part of.. - The logger name prefix to prepend in front of the logger name. - Converted . - 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. @@ -11116,23 +11790,6 @@ The events. - - - 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. - - List of strings annotated for more terse serialization. @@ -11151,6 +11808,119 @@ This will be removed when ILogReceiverClient is removed. This provides an implementation of the legacy interface. + + + Abstract base class for the WcfLogReceiverXXXWay classes. It can only be + used internally (see internal constructor). It passes off any Channel usage + to the inheriting class. + + Type of the WCF service. + + + + 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. + + + + + Gets or sets the cookie container. + + The cookie container. + Initializes a new instance of the class. @@ -11222,16 +11992,6 @@ - - - The client getting proxied - - - - - Do we use one-way or two-way messaging? - - Initializes a new instance of the class. @@ -11321,11 +12081,6 @@ IAsyncResult value which can be passed to . - - - Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. - - Causes a communication object to transition from its current state into the closed state. @@ -11349,27 +12104,6 @@ Closes the client asynchronously. - - - Occurs when Close operation has completed. - - - - - Occurs when the communication object completes its transition from the closing state into the closed state. - - - - - Occurs when the communication object first enters the closing state. - - - - - Gets or sets the cookie container. - - The cookie container. - Completes an asynchronous operation to close a communication object. @@ -11382,27 +12116,12 @@ The that is returned by a call to the method.The was unable to be opened and has entered the state.The timeout elapsed before the was able to enter the state and has entered the state. - - - Gets the target endpoint for the service to which the WCF client can connect. - - Ends asynchronous processing of log messages. The result. - - - Occurs when the communication object first enters the faulted state. - - - - - Gets the underlying implementation. - - Causes a communication object to transition from the created state into the opened state. @@ -11426,6 +12145,75 @@ User-specific state. + + + Processes the log messages asynchronously. + + The events to send. + + + + Processes the log messages asynchronously. + + The events to send. + User-specific state. + + + + Causes a communication object to transition from its current state into the closed state. + + + + + The client getting proxied + + + + + Do we use one-way or two-way messaging? + + + + + Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. + + + + + Occurs when Close operation has completed. + + + + + Occurs when the communication object completes its transition from the closing state into the closed state. + + + + + Occurs when the communication object first enters the closing state. + + + + + Gets or sets the cookie container. + + The cookie container. + + + + Gets the target endpoint for the service to which the WCF client can connect. + + + + + Occurs when the communication object first enters the faulted state. + + + + + Gets the underlying implementation. + + Occurs when Open operation has completed. @@ -11441,19 +12229,6 @@ Occurs when the communication object first enters the opening state. - - - Processes the log messages asynchronously. - - The events to send. - - - - Processes the log messages asynchronously. - - The events to send. - User-specific state. - Occurs when the log message processing has completed. @@ -11467,124 +12242,6 @@ The value of the of the object. - - - Causes a communication object to transition from its current state into the closed state. - - - - - Abstract base class for the WcfLogReceiverXXXWay classes. It can only be - used internally (see internal constructor). It passes off any Channel usage - to the inheriting class. - - Type of the WCF service. - - - - 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. - - - - Occurs when the log message processing has completed. - - - - - Occurs when Open operation has completed. - - - - - Occurs when Close operation has completed. - - - - - Gets or sets the cookie container. - - The cookie container. - - - - 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. - Log Receiver Client using WCF. @@ -11756,6 +12413,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -11824,18 +12487,6 @@ Nested Diagnostics Context - for log4net compatibility. - - - Gets the top NDC message but doesn't remove it. - - The top message. . - - - - Gets the top NDC object but doesn't remove it. - - The object from the top of the NDC stack, if defined; otherwise null. - Pushes the specified text on current thread NDC. @@ -11872,6 +12523,18 @@ Array of objects on the stack. + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Gets the top NDC object but doesn't remove it. + + The object from the top of the NDC stack, if defined; otherwise null. + Nested Diagnostics Context - a thread-local structure that keeps a stack @@ -11879,18 +12542,6 @@ Mostly for compatibility with log4net. - - - Gets the top NDC message but doesn't remove it. - - The top message. . - - - - Gets the top NDC object but doesn't remove it. - - The object at the top of the NDC stack if defined; otherwise null. - Pushes the specified text on current thread NDC. @@ -11948,6 +12599,18 @@ Array of objects on the stack. + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Gets the top NDC object but doesn't remove it. + + The object at the top of the NDC stack if defined; otherwise null. + Resets the stack to the original count during . @@ -11955,7 +12618,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The stack. The previous count. @@ -11972,25 +12635,25 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. Parameters for the message - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -12002,25 +12665,25 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. Parameters for the message - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -12080,22 +12743,17 @@

- + - Initializes a new instance of the class. + Sends log messages to the remote instance of NLog Viewer. - - - - Writes log messages to the console. - - 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. @@ -12103,1410 +12761,15 @@

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. +

- - - Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output. - - - - - - Initializes the target. - - - - - Closes the target and releases any unmanaged resources. - - - - - 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. - - - - - Write to output - - text to be written. - - - - A descriptor for an archive created with the DateAndSequence numbering mode. - - - - - The full name of the archive file. - - - - - The parsed date contained in the file name. - - - - - The parsed sequence number contained in the file name. - - - - - Determines whether produces the same string as the current instance's date once formatted with the current instance's date format. - - The date to compare the current object's date to. - True if the formatted dates are equal, otherwise False. - - - - Initializes a new instance of the class. - - - - - Writes log messages to the attached managed debugger. - - -

- 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 the target. - - - - - Closes the target and releases any unmanaged resources. - - - - - Writes the specified logging event to the attached debugger. - - The logging event. - - - - Mock target - useful for testing. - - 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. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets the number of times this target has been called. - - - - - - Gets the last message rendered by this target. - - - - - - Increases the number of messages. - - The logging event. - - - - Modes of archiving files based on time. - - - - - Don't archive based on time. - - - - - AddToArchive every year. - - - - - AddToArchive every month. - - - - - AddToArchive daily. - - - - - AddToArchive every hour. - - - - - AddToArchive every minute. - - - - - Writes log messages to one or more files. - - Documentation on NLog Wiki - - - - Default clean up period of the initilized files. When a file exceeds the clean up period is removed from the list. - - Clean up period is defined in days. - - - - The maximum number of initialised files at any one time. Once this number is exceeded clean up procedures - are initiated to reduce the number of initialised files. - - - - - This value disables file archiving based on the size. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. - - Last write time is store in local time (no UTC). - - - - Factory used to create the file appenders in the instance. - - File appenders are stored in an instance of . - - - - List of the associated file appenders with the instance. - - - - - The number of initialised files at any one time. - - - - - The maximum number of archive files that should be kept. - - - - - It holds the file names of existing archives in order for the oldest archives to be removed when the list of - filenames becomes too long. - - - - - The filename as target - - - - - The archive file name as target - - - - - The filename if is a fixed string - - - - - The date of the previous log event. - - - - - The file name of the previous log event. - - - - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets the name of the file to write to. - - - 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. - - - - - - Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. - If set to false, nothing gets written when the filename is wrong. - - - - - Gets or sets a value indicating whether to create directories if they do not 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. - - - - - - Gets or sets a value indicating whether to delete old log file on startup. - - - 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. - - - - - - 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. - - - - - - Gets or sets the maximum number of log filenames that should be stored as existing. - - - The bigger this number is the longer it will take to write each log record. The smaller the number is - the higher the chance that the clean function will be run when no new files have been opened. - - - - - - Gets or sets a value indicating whether to enable log file(s) to be deleted. - - - - - - Gets or sets the line ending mode. - - - - - - Gets or sets a value indicating whether to automatically flush the file buffers after each 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 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 log file buffer size in bytes. - - - - - - Gets or sets the file encoding. - - - - - - 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. - - - - - - Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. - - - This effectively prevents files from being kept open. - - - - - - 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. - - - 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 archive old log file on startup. - - - This option works only when the "FileName" parameter denotes a single file. - After archiving the old file, the current log file will be empty. - - -
- - - Gets or sets a value specifying the date format to use when archiving files. - - - This option works only when the "ArchiveNumbering" parameter is set either to Date or DateAndSequence. - - - - - - Gets or sets the size in bytes above which log files will be automatically archived. - - Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. - Choose: - - - 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 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 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 or sets the maximum number of archive files that should be kept. - - - - - - Gets or sets the way file archives are numbered. - - - - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - - - - - Gets the characters that are appended after each line. - - - - - Refresh the ArchiveFilePatternToWatch option of the . - The log file must be watched for archiving when multiple processes are writing to the same - open file. - - - - - 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. - - - - - Returns the suitable appender factory ( ) to be used to generate the file - appenders associated with the instance. - - The type of the file appender factory returned depends on the values of various properties. - - suitable for this instance. - - - - Initializes file logging by creating data structures that - enable efficient multi-file logging. - - - - - Closes the file(s) opened for writing. - - - - - Writes the specified logging event to a file specified in the FileName - parameter. - - The logging event. - - - - 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. - - - - - Formats the log event for write. - - The log event to be formatted. - A string representation of the log event. - - - - Gets the bytes to be written to the file. - - Log event. - Array of bytes that are ready to be written. - - - - 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. - - - - Replaces the numeric pattern i.e. {#} in a file name with the parameter value. - - File name which contains the numeric pattern. - Value which will replace the numeric pattern. - File name with the value of in the position of the numeric pattern. - - - - Determines if the file name as contains a numeric pattern i.e. {#} in it. - - Example: - trace{#}.log Contains the numeric pattern. - trace{###}.log Contains the numeric pattern. - trace{#X#}.log Contains the numeric pattern (See remarks). - trace.log Does not contain the pattern. - - Occasionally, this method can identify the existence of the {#} pattern incorrectly. - File name to be checked. - when the pattern is found; otherwise. - - - - Archives the using a rolling style numbering (the most recent is always #0 then - #1, ..., #N. When the number of archive files exceed the obsolete archives - are deleted. - - - This method is called recursively. This is the reason the is required. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Value which will replace the numeric pattern. - - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - - - - Archives the using a sequence style numbering. The most recent archive has the - highest number. When the number of archive files exceed the obsolete - archives are deleted. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - - - - Archives fileName to archiveFileName. - - File name to be archived. - Name of the archive file. - - - - - Archives the using a date and sequence style numbering. Archives will be stamped - with the prior period (Year, Month, Day) datetime. The most recent archive has the highest number (in - combination with the date). - - - When the number of archive files exceed the obsolete archives are deleted. - - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Log event that the instance is currently processing. - - - - Deletes files among a given list, and stops as soon as the remaining files are fewer than the setting. - - List of the file archives. - - Items are deleted in the same order as in . No file is deleted if property is zero. - - - - - Searches a given directory for archives that comply with the current archive pattern. - - An enumeration of archive infos, ordered by their file creation date. - - - - Gets the collection of files in the specified directory which they match the . - - Directory to searched. - Pattern which the files will be searched against. - List of files matching the pattern. - - - - Replaces the string-based pattern i.e. {#} in a file name with the value passed in parameter. - - File name which contains the string-based pattern. - Value which will replace the string-based pattern. - - File name with the value of in the position of the string-based pattern. - - - - - Archives the using a date style numbering. Archives will be stamped with the - prior period (Year, Month, Day, Hour, Minute) datetime. When the number of archive files exceed the obsolete archives are deleted. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Log event that the instance is currently processing. - - - - Deletes archive files in reverse chronological order until only the - MaxArchiveFiles number of archive files remain. - - The pattern that archive filenames will match - - - - Gets the correct formatting to be used based on the value of for converting values which will be inserting into file - names during archiving. - - This value will be computed only when a empty value or is passed into - - Date format to used irrespectively of value. - Formatting for dates. - - - - Invokes the archiving process after determining when and which type of archiving is required. - - File name to be checked and archived. - Log event that the instance is currently processing. - - - - Gets the pattern that archive files will match - - Filename of the log file - Log event that the instance is currently processing. - A string with a pattern that will match the archive filenames - - - - Determine if old archive files should be deleted. - - when old archives should be deleted; otherwise. - - - - Indicates if the automatic archiving process should be executed. - - File name to be written. - Log event that the instance is currently processing. - The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. - - - - Indicates if the automatic archiving process should be executed based on file size constrains. - - File name to be written. - The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. - - - - Indicates if the automatic archiving process should be executed based on date/time constrains. - - File name to be written. - Log event that the instance is currently processing. - when archiving should be executed; otherwise. - - - - The sequence of to be written for the file header. - - Sequence of to be written. - - - - The sequence of to be written for the file footer. - - Sequence of to be written. - - - - Evaluates which parts of a file should be written (header, content, footer) based on various properties of - instance and writes them. - - File name to be written. - Log event that the instance is currently processing. - Raw sequence of to be written into the content part of the file. - Indicates that only content section should be written in the file. - - - - Initialise a file to be used by the instance. Based on the number of initialised - files and the values of various instance properties clean up and/or archiving processes can be invoked. - - File name to be written. - Log event that the instance is currently processing. - Indicates that only content section should be written in the file. - when file header should be written; otherwise. - - - - Writes the file footer and uninitialises the file in instance internal structures. - - File name to close. - - - - Writes the footer information to a file. - - The file path to write to. - - - - Invokes the archiving and clean up of older archive file based on the values of and properties respectively. - - File name to be written. - Log event that the instance is currently processing. - - - - Creates the file specified in and writes the file content in each entirety i.e. - Header, Content and Footer. - - The name of the file to be written. - Sequence of to be written in the content section of the file. - This method is used when the content of the log file is re-written on every write. - - - - Writes the header information to a file. - - File appender associated with the file. - - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - - - - The sequence of to be written in a file after applying any formating and any - transformations required from the . - - The layout used to render output message. - Sequence of to be written. - Usually it is used to render the header and hooter of the files. - - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - - - - Creates an instance of class. - - The file target instance whose files to archive. - Maximum number of archive files to be kept. - - - - Gets or sets the maximum number of archive files that should be kept. - - - - - Adds the files in the specified path to the archive file queue. - - The folder where the archive files are stored. - - - - Adds a file into archive. - - File name of the archive - Original file name - Create a directory, if it does not exist - if the file has been moved successfully; otherwise. - - - - Archives the file, either by copying it to a new file system location or by compressing it, and add the file name into the list of archives. - - Target file name. - Original file name. - Create a directory, if it does not exist. - - - - Remove old archive files when the files on the queue are more than the . - - - - - Gets the file name for the next archive file by appending a number to the provided - "base"-filename. - - Example: - Original Filename trace.log - Target Filename trace.15.log - - Original file name. - File name suitable for archiving - - - - Characters determining the start of the . - - - - - Characters determining the end of the . - - - - - File name which is used as template for matching and replacements. - It is expected to contain a pattern to match. - - - - - The begging position of the - within the . -1 is returned - when no pattern can be found. - - - - - The ending position of the - within the . -1 is returned - when no pattern can be found. - - - - - Replace the pattern with the specified String. - - - - - - - Line ending mode. - - - - - Insert platform-dependent end-of-line sequence after each line. - - - - - Insert CR LF sequence (ASCII 13, ASCII 10) after each line. - - - - - Insert CR character (ASCII 13) after each line. - - - - - Insert LF character (ASCII 10) after each line. - - - - - Do not insert any line ending. - - - - - Gets the name of the LineEndingMode instance. - - - - - Gets the new line characters (value) of the LineEndingMode instance. - - - - - Initializes a new instance of . - - The mode name. - The new line characters to be used. - - - - Returns the that corresponds to the supplied . - - - The textual representation of the line ending mode, such as CRLF, LF, Default etc. - Name is not case sensitive. - - The value, that corresponds to the . - There is no line ending mode with the specified name. - - - - 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 mode1.NewLineCharacters == mode2.NewLineCharacters. - - - - Compares two objects and returns a - value indicating whether the first one is not equal to the second one. - - The first mode - The second mode - The value of mode1.NewLineCharacters != mode2.NewLineCharacters. - - - - 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. - - - - - Provides a type converter to convert objects to and from other representations. - - - - - Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. - - - true if this converter can perform the conversion; otherwise, false. - - An that provides a format context. A that represents the type you want to convert from. - - - - Converts the given object to the type of this converter, using the specified context and culture information. - - - An that represents the converted value. - - An that provides a format context. The to use as the current culture. The to convert. The conversion cannot be performed. - - - - Sends log messages to a NLog Receiver Service (using WCF or Web Services). - - Documentation on NLog Wiki - - - - Initializes a new instance of the class. - - - - - Gets or sets the endpoint address. - - The endpoint address. - - - - - Gets or sets the name of the endpoint configuration in WCF configuration file. - - The name of the endpoint configuration. - - - - - Gets or sets a value indicating whether to use binary message encoding. - - - - - - Gets or sets a value indicating whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply) - - - - - - Gets or sets the client ID. - - The client ID. - - - - - Gets the list of parameters. - - The parameters. - - - - - Gets or sets a value indicating whether to include per-event properties in the payload sent to the server. - - - - - - Called when log events are being sent (test hook). - - The events. - The async continuations. - True if events should be sent, false to stop processing them. - - - - Writes logging event to the log target. Must be overridden in inheriting - classes. - - 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. - - Logging events to be written out. - - - - Flush any pending log messages asynchronously (in case of asynchronous targets). - - The asynchronous continuation. - - - - Creating a new instance of WcfLogReceiverClient - - Inheritors can override this method and provide their own - service configuration - binding and endpoint address - - - - - - Creating a new instance of IWcfLogReceiverClient - - Inheritors can override this method and provide their own - service configuration - binding and endpoint address - - - virtual is used by endusers - - - - 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: -

- -
-
- - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets the list of logs gathered in the . - - - - - Renders the logging event message and adds it to the internal ArrayList of log messages. - - The logging event. - - - - A parameter to MethodCall. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The layout to use for parameter value. - - - - Initializes a new instance of the class. - - Name of the parameter. - The layout. - - - - Initializes a new instance of the class. - - The name of the parameter. - The layout. - The type of the parameter. - - - - Gets or sets the name of the parameter. - - - - - - Gets or sets the type of the parameter. - - - - - - Gets or sets the layout that should be use to calculate the value for the parameter. - - - - - - Calls the specified static method on each log message and passes contextual parameters to it. - - 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 class name. - - - - - - Gets or sets the method name. The method must be public and static. - - Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx - e.g. - - - - - - Initializes the target. - - - - - Calls the specified Method. - - Method parameters. - - - - The base class for all targets which call methods (local or remote). - Manages parameters and type coercion. - - - - - Initializes a new instance of the class. - - - - - Gets the array of parameters to be passed. - - - - - - Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). - - - The logging event. - - - - - Calls the target method. Must be implemented in concrete classes. - - Method call parameters. - The continuation. - - - - Calls the target method. Must be implemented in concrete classes. - - Method call parameters. - Sends log messages over the network. @@ -13546,333 +12809,16 @@

- + - Initializes a new instance of the class. + Represents target that supports string formatting using layouts. - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets the network address. - - - The network address can be: -
    -
  • tcp://host:port - TCP (auto select IPv4/IPv6) (not supported on Windows Phone 7.0)
  • -
  • tcp4://host:port - force TCP/IPv4 (not supported on Windows Phone 7.0)
  • -
  • tcp6://host:port - force TCP/IPv6 (not supported on Windows Phone 7.0)
  • -
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight and on Windows Phone 7.0)
  • -
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight and on Windows Phone 7.0)
  • -
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight and on Windows Phone 7.0)
  • -
  • http://host:port/pageName - HTTP using POST verb
  • -
  • https://host:port/pageName - HTTPS using POST verb
  • -
- For SOAP-based webservice support over HTTP use WebService target. -
- -
- - - Gets or sets a value indicating whether to keep connection open whenever possible. - - - - - - Gets or sets a value indicating whether to append newline at the end of log message. - - - - - - Gets or sets the maximum message size in bytes. - - - - - - Gets or sets the size of the connection cache (number of connections which are kept alive). - - - - - - Gets or sets the maximum current connections. 0 = no maximum. - - - - - - Gets or sets the action that should be taken if the will be more connections than . - - - - - - Gets or sets the maximum queue size. - - - - - Gets or sets the action that should be taken if the message is larger than - maxMessageSize. - - - - - - Gets or sets the encoding to be used. - - - - - - Flush any pending log messages asynchronously (in case of asynchronous targets). - - The asynchronous continuation. - - - - Closes the target. - - - - - Sends the - rendered logging event over the network optionally concatenating it with a newline character. - - The logging event. - - - - Try to remove. - - - - - removed something? - - - - Gets the bytes to be written. - - Log event. - Byte array. - - - - The action to be taken when there are more connections then the max. - - - - - Just allow it. - - - - - Discard the connection item. - - - - - Block until there's more room in the queue. - - - - - Action that should be taken if the message overflows. - - - - - Report an error. - - - - - Split the message into smaller pieces. - - - - - Discard the entire message. - - - - - Represents a parameter to a NLogViewer target. - - - - - Initializes a new instance of the class. - - - - - Gets or sets viewer parameter name. - - - - - - Gets or sets the layout that should be use to calcuate the value for the parameter. - - - - - - 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. -

-
-
- - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. - - - - - - Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. - - - - - - 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 dictionary contents. - - - - - - Gets or sets a value indicating whether to include stack contents. - - - - - - Gets or sets the NDC item separator. - - - - - - Gets the collection of parameters. Each parameter contains a mapping - between NLog layout and a named parameter. - - - - - - Gets the layout renderer which produces Log4j-compatible XML events. - - - - - Gets or sets the instance of that is used to format log messages. - - - - - - Discards log messages. Used mainly for debugging and benchmarking. - - 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 to perform layout calculation. - - - - - - Does nothing. Optionally it calculates the layout text but - discards the results. - - The logging event. Represents logging target. - - - 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. - - Get all used layouts in this target. @@ -13980,6 +12926,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -13988,6 +12940,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -13995,36 +12953,30 @@ The event info object to perform the merge to. - + - Marks class as a logging target and assigns a name to it. + Gets or sets the name of the target. - This attribute is not required when registering the target in the API. + - + - Initializes a new instance of the class. - - Name of the target. - - - - Gets or sets a value indicating whether to the target is a wrapper target (used to generate the target summary documentation page). + Gets the object which can be used to synchronize asynchronous operations that must rely on the . - + - Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page). + Gets the logging configuration this target is part of. - + - Represents target that supports string formatting using layouts. + Gets a value indicating whether the target has been initialized. - 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} @@ -14036,6 +12988,240 @@
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Flush any pending log messages asynchronously (in case of asynchronous targets). + + The asynchronous continuation. + + + + Closes the target. + + + + + Sends the + rendered logging event over the network optionally concatenating it with a newline character. + + The logging event. + + + + Try to remove. + + + + + removed something? + + + + Gets the bytes to be written. + + Log event. + Byte array. + + + + Gets or sets the network address. + + + The network address can be: +
    +
  • tcp://host:port - TCP (auto select IPv4/IPv6) (not supported on Windows Phone 7.0)
  • +
  • tcp4://host:port - force TCP/IPv4 (not supported on Windows Phone 7.0)
  • +
  • tcp6://host:port - force TCP/IPv6 (not supported on Windows Phone 7.0)
  • +
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight and on Windows Phone 7.0)
  • +
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight and on Windows Phone 7.0)
  • +
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight and on Windows Phone 7.0)
  • +
  • http://host:port/pageName - HTTP using POST verb
  • +
  • https://host:port/pageName - HTTPS using POST verb
  • +
+ For SOAP-based webservice support over HTTP use WebService target. +
+ +
+ + + Gets or sets a value indicating whether to keep connection open whenever possible. + + + + + + Gets or sets a value indicating whether to append newline at the end of log message. + + + + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + + + + Gets or sets the maximum message size in bytes. + + + + + + Gets or sets the size of the connection cache (number of connections which are kept alive). + + + + + + Gets or sets the maximum current connections. 0 = no maximum. + + + + + + Gets or sets the action that should be taken if the will be more connections than . + + + + + + Gets or sets the maximum queue size. + + + + + Gets or sets the action that should be taken if the message is larger than + maxMessageSize. + + + + + + Gets or sets the encoding to be used. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. + + + + + + Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + + 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 dictionary contents. + + + + + + Gets or sets a value indicating whether to include stack contents. + + + + + + Gets or sets the NDC item separator. + + + + + + Gets the collection of parameters. Each parameter contains a mapping + between NLog layout and a named parameter. + + + + + + Gets the layout renderer which produces Log4j-compatible XML events. + + + + + Gets or sets the instance of that is used to format log messages. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with a name. + + Name of the target. + + + + Writes log messages to the console. + + 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: +

+ +
+
Represents target that supports string formatting using layouts. @@ -14043,7 +13229,7 @@ - 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} @@ -14073,6 +13259,1705 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Initializes the target. + + + + + Closes the target and releases any unmanaged resources. + + + + + 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. + + + + + Write to output + + text to be written. + + + + Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output. + + + + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + A descriptor for an archive created with the DateAndSequence numbering mode. + + + + + Determines whether produces the same string as the current instance's date once formatted with the current instance's date format. + + The date to compare the current object's date to. + True if the formatted dates are equal, otherwise False. + + + + Initializes a new instance of the class. + + + + + The full name of the archive file. + + + + + The parsed date contained in the file name. + + + + + The parsed sequence number contained in the file name. + + + + + Writes log messages to the attached managed debugger. + + +

+ 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Initializes the target. + + + + + Closes the target and releases any unmanaged resources. + + + + + Writes the specified logging event to the attached debugger. + + The logging event. + + + + Mock target - useful for testing. + + 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + 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. + + + + + + Modes of archiving files based on time. + + + + + Don't archive based on time. + + + + + AddToArchive every year. + + + + + AddToArchive every month. + + + + + AddToArchive daily. + + + + + AddToArchive every hour. + + + + + AddToArchive every minute. + + + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + + + + Writes log messages to one or more files. + + Documentation on NLog Wiki + + + + Default clean up period of the initilized files. When a file exceeds the clean up period is removed from the list. + + Clean up period is defined in days. + + + + The maximum number of initialised files at any one time. Once this number is exceeded clean up procedures + are initiated to reduce the number of initialised files. + + + + + This value disables file archiving based on the size. + + + + + Holds the initialised files each given time by the instance. Against each file, the last write time is stored. + + Last write time is store in local time (no UTC). + + + + Factory used to create the file appenders in the instance. + + File appenders are stored in an instance of . + + + + List of the associated file appenders with the instance. + + + + + The number of initialised files at any one time. + + + + + The maximum number of archive files that should be kept. + + + + + It holds the file names of existing archives in order for the oldest archives to be removed when the list of + filenames becomes too long. + + + + + The filename as target + + + + + The archive file name as target + + + + + The date of the previous log event. + + + + + The file name of the previous log event. + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Refresh the ArchiveFilePatternToWatch option of the . + The log file must be watched for archiving when multiple processes are writing to the same + open file. + + + + + 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. + + + + + Returns the suitable appender factory ( ) to be used to generate the file + appenders associated with the instance. + + The type of the file appender factory returned depends on the values of various properties. + + suitable for this instance. + + + + Initializes file logging by creating data structures that + enable efficient multi-file logging. + + + + + Closes the file(s) opened for writing. + + + + + Writes the specified logging event to a file specified in the FileName + parameter. + + The logging event. + + + + Get full filename (=absolute) and cleaned if needed. + + + + + + + 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. + + + + + Formats the log event for write. + + The log event to be formatted. + A string representation of the log event. + + + + Gets the bytes to be written to the file. + + Log event. + Array of bytes that are ready to be written. + + + + 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. + + + + Replaces the numeric pattern i.e. {#} in a file name with the parameter value. + + File name which contains the numeric pattern. + Value which will replace the numeric pattern. + File name with the value of in the position of the numeric pattern. + + + + Determines if the file name as contains a numeric pattern i.e. {#} in it. + + Example: + trace{#}.log Contains the numeric pattern. + trace{###}.log Contains the numeric pattern. + trace{#X#}.log Contains the numeric pattern (See remarks). + trace.log Does not contain the pattern. + + Occasionally, this method can identify the existence of the {#} pattern incorrectly. + File name to be checked. + when the pattern is found; otherwise. + + + + Archives the using a rolling style numbering (the most recent is always #0 then + #1, ..., #N. When the number of archive files exceed the obsolete archives + are deleted. + + + This method is called recursively. This is the reason the is required. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Value which will replace the numeric pattern. + + + + Archives the using a sequence style numbering. The most recent archive has the + highest number. When the number of archive files exceed the obsolete + archives are deleted. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + + + + Archives fileName to archiveFileName. + + File name to be archived. + Name of the archive file. + + + + + Archives the using a date and sequence style numbering. Archives will be stamped + with the prior period (Year, Month, Day) datetime. The most recent archive has the highest number (in + combination with the date). + + + When the number of archive files exceed the obsolete archives are deleted. + + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Log event that the instance is currently processing. + + + + Deletes files among a given list, and stops as soon as the remaining files are fewer than the setting. + + List of the file archives. + + Items are deleted in the same order as in . No file is deleted if property is zero. + + + + + Searches a given directory for archives that comply with the current archive pattern. + + An enumeration of archive infos, ordered by their file creation date. + + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + + + + Gets the collection of files in the specified directory which they match the . + + Directory to searched. + Pattern which the files will be searched against. + List of files matching the pattern. + + + + Replaces the string-based pattern i.e. {#} in a file name with the value passed in parameter. + + File name which contains the string-based pattern. + Value which will replace the string-based pattern. + + File name with the value of in the position of the string-based pattern. + + + + + Archives the using a date style numbering. Archives will be stamped with the + prior period (Year, Month, Day, Hour, Minute) datetime. When the number of archive files exceed the obsolete archives are deleted. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Log event that the instance is currently processing. + + + + Deletes archive files in reverse chronological order until only the + MaxArchiveFiles number of archive files remain. + + The pattern that archive filenames will match + + + + Gets the correct formatting to be used based on the value of for converting values which will be inserting into file + names during archiving. + + This value will be computed only when a empty value or is passed into + + Date format to used irrespectively of value. + Formatting for dates. + + + + Invokes the archiving process after determining when and which type of archiving is required. + + File name to be checked and archived. + Log event that the instance is currently processing. + + + + Gets the pattern that archive files will match + + Filename of the log file + Log event that the instance is currently processing. + A string with a pattern that will match the archive filenames + + + + Determine if old archive files should be deleted. + + when old archives should be deleted; otherwise. + + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + + + Indicates if the automatic archiving process should be executed. + + File name to be written. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + Filename to archive. If null, then nothing to archive. + + + + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. + + File name to be written. + The size in bytes of the next chunk of data to be written in the file. + Filename to archive. If null, then nothing to archive. + + + + Returns the file name for archiving, or null if archiving should not occur based on date/time. + + File name to be written. + Log event that the instance is currently processing. + Filename to archive. If null, then nothing to archive. + + + + The sequence of to be written for the file header. + + Sequence of to be written. + + + + The sequence of to be written for the file footer. + + Sequence of to be written. + + + + Evaluates which parts of a file should be written (header, content, footer) based on various properties of + instance and writes them. + + File name to be written. + Log event that the instance is currently processing. + Raw sequence of to be written into the content part of the file. + Indicates that only content section should be written in the file. + + + + Initialise a file to be used by the instance. Based on the number of initialised + files and the values of various instance properties clean up and/or archiving processes can be invoked. + + File name to be written. + Log event that the instance is currently processing. + Indicates that only content section should be written in the file. + when file header should be written; otherwise. + + + + Writes the file footer and finalizes the file in instance internal structures. + + File name to close. + Indicates if the file is being finalized for archiving. + + + + Writes the footer information to a file. + + The file path to write to. + + + + Invokes the archiving and clean up of older archive file based on the values of and properties respectively. + + File name to be written. + Log event that the instance is currently processing. + + + + Creates the file specified in and writes the file content in each entirety i.e. + Header, Content and Footer. + + The name of the file to be written. + Sequence of to be written in the content section of the file. + First attempt to write? + This method is used when the content of the log file is re-written on every write. + + + + Writes the header information to a file. + + File appender associated with the file. + + + + The sequence of to be written in a file after applying any formating and any + transformations required from the . + + The layout used to render output message. + Sequence of to be written. + Usually it is used to render the header and hooter of the files. + + + + Gets or sets the name of the file to write to. + + + 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. + + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. + If set to false, nothing gets written when the filename is wrong. + + + + + Is the an absolute or relative path? + + + + + Gets or sets a value indicating whether to create directories if they do not 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. + + + + + + Gets or sets a value indicating whether to delete old log file on startup. + + + 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. + + + + + + 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. + + + + + + Gets or sets the maximum number of log filenames that should be stored as existing. + + + The bigger this number is the longer it will take to write each log record. The smaller the number is + the higher the chance that the clean function will be run when no new files have been opened. + + + + + + Gets or sets a value indicating whether to enable log file(s) to be deleted. + + + + + + Should we capture the last write time of a file? + + + + + Gets or sets the line ending mode. + + + + + + Gets or sets a value indicating whether to automatically flush the file buffers after each 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 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 log file buffer size in bytes. + + + + + + Gets or sets the file encoding. + + + + + + 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. + + + + + + Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. + + + This effectively prevents files from being kept open. + + + + + + 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. + + + 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 archive old log file on startup. + + + This option works only when the "FileName" parameter denotes a single file. + After archiving the old file, the current log file will be empty. + + +
+ + + Gets or sets a value specifying the date format to use when archiving files. + + + This option works only when the "ArchiveNumbering" parameter is set either to Date or DateAndSequence. + + + + + + Gets or sets the size in bytes above which log files will be automatically archived. + + Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. + Choose: + + + 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 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. +

+
+ +
+ + + Is the an absolute or relative path? + + + + + 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 or sets the maximum number of archive files that should be kept. + + + + + + Gets or sets the way file archives are numbered. + + + + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + + + + Gets the characters that are appended after each line. + + + + + Creates an instance of class. + + The file target instance whose files to archive. + Maximum number of archive files to be kept. + + + + Adds the files in the specified path to the archive file queue. + + The folder where the archive files are stored. + + + + Adds a file into archive. + + File name of the archive + Original file name + Create a directory, if it does not exist + if the file has been moved successfully; otherwise. + + + + Archives the file, either by copying it to a new file system location or by compressing it, and add the file name into the list of archives. + + Target file name. + Original file name. + Create a directory, if it does not exist. + + + + Remove old archive files when the files on the queue are more than the . + + + + + Gets the file name for the next archive file by appending a number to the provided + "base"-filename. + + Example: + Original Filename trace.log + Target Filename trace.15.log + + Original file name. + File name suitable for archiving + + + + Gets or sets the maximum number of archive files that should be kept. + + + + + Characters determining the start of the . + + + + + Characters determining the end of the . + + + + + Replace the pattern with the specified String. + + + + + + + File name which is used as template for matching and replacements. + It is expected to contain a pattern to match. + + + + + The begging position of the + within the . -1 is returned + when no pattern can be found. + + + + + The ending position of the + within the . -1 is returned + when no pattern can be found. + + + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + + + + Line ending mode. + + + + + Insert platform-dependent end-of-line sequence after each line. + + + + + Insert CR LF sequence (ASCII 13, ASCII 10) after each line. + + + + + Insert CR character (ASCII 13) after each line. + + + + + Insert LF character (ASCII 10) after each line. + + + + + Do not insert any line ending. + + + + + Initializes a new instance of . + + The mode name. + The new line characters to be used. + + + + Returns the that corresponds to the supplied . + + + The textual representation of the line ending mode, such as CRLF, LF, Default etc. + Name is not case sensitive. + + The value, that corresponds to the . + There is no line ending mode with the specified name. + + + + 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 mode1.NewLineCharacters == mode2.NewLineCharacters. + + + + Compares two objects and returns a + value indicating whether the first one is not equal to the second one. + + The first mode + The second mode + The value of mode1.NewLineCharacters != mode2.NewLineCharacters. + + + + 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. + + + + + Gets the name of the LineEndingMode instance. + + + + + Gets the new line characters (value) of the LineEndingMode instance. + + + + + Provides a type converter to convert objects to and from other representations. + + + + + Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. + + + true if this converter can perform the conversion; otherwise, false. + + An that provides a format context. A that represents the type you want to convert from. + + + + Converts the given object to the type of this converter, using the specified context and culture information. + + + An that represents the converted value. + + An that provides a format context. The to use as the current culture. The to convert. The conversion cannot be performed. + + + + Sends log messages to a NLog Receiver Service (using WCF or Web Services). + + Documentation on NLog Wiki + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + + + + Called when log events are being sent (test hook). + + The events. + The async continuations. + True if events should be sent, false to stop processing them. + + + + Writes logging event to the log target. Must be overridden in inheriting + classes. + + 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. + + Logging events to be written out. + + + + Flush any pending log messages asynchronously (in case of asynchronous targets). + + The asynchronous continuation. + + + + Creating a new instance of WcfLogReceiverClient + + Inheritors can override this method and provide their own + service configuration - binding and endpoint address + + + + + + Creating a new instance of IWcfLogReceiverClient + + Inheritors can override this method and provide their own + service configuration - binding and endpoint address + + + virtual is used by endusers + + + + Gets or sets the endpoint address. + + The endpoint address. + + + + + Gets or sets the name of the endpoint configuration in WCF configuration file. + + The name of the endpoint configuration. + + + + + Gets or sets a value indicating whether to use binary message encoding. + + + + + + Gets or sets a value indicating whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply) + + + + + + Gets or sets the client ID. + + The client ID. + + + + + Gets the list of parameters. + + The parameters. + + + + + Gets or sets a value indicating whether to include per-event properties in the payload sent to the server. + + + + + + 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: +

+ +
+
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Renders the logging event message and adds it to the internal ArrayList of log messages. + + The logging event. + + + + Gets the list of logs gathered in the . + + + + + A parameter to MethodCall. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The layout to use for parameter value. + + + + Initializes a new instance of the class. + + Name of the parameter. + The layout. + + + + Initializes a new instance of the class. + + The name of the parameter. + The layout. + The type of the parameter. + + + + Gets or sets the name of the parameter. + + + + + + Gets or sets the type of the parameter. + + + + + + Gets or sets the layout that should be use to calculate the value for the parameter. + + + + + + Calls the specified static method on each log message and passes contextual parameters to it. + + 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: +

+ +
+
+ + + The base class for all targets which call methods (local or remote). + Manages parameters and type coercion. + + + + + Initializes a new instance of the class. + + + + + Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). + + + The logging event. + + + + + Calls the target method. Must be implemented in concrete classes. + + Method call parameters. + The continuation. + + + + Calls the target method. Must be implemented in concrete classes. + + Method call parameters. + + + + Gets the array of parameters to be passed. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + + + + Initializes the target. + + + + + Calls the specified Method. + + Method parameters. + + + + Gets or sets the class name. + + + + + + Gets or sets the method name. The method must be public and static. + + Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx + e.g. + + + + + + The action to be taken when there are more connections then the max. + + + + + Just allow it. + + + + + Discard the connection item. + + + + + Block until there's more room in the queue. + + + + + Action that should be taken if the message overflows. + + + + + Report an error. + + + + + Split the message into smaller pieces. + + + + + Discard the entire message. + + + + + Represents a parameter to a NLogViewer target. + + + + + Initializes a new instance of the class. + + + + + Gets or sets viewer parameter name. + + + + + + Gets or sets the layout that should be use to calcuate the value for the parameter. + + + + + + Discards log messages. Used mainly for debugging and benchmarking. + + 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Does nothing. Optionally it calculates the layout text but + discards the results. + + The logging event. + + + + Gets or sets a value indicating whether to perform layout calculation. + + + + + + Marks class as a logging target and assigns a name to it. + + This attribute is not required when registering the target in the API. + + + + Initializes a new instance of the class. + + Name of the target. + + + + Gets or sets a value indicating whether to the target is a wrapper target (used to generate the target summary documentation page). + + + + + Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page). + + Web service protocol. @@ -14126,45 +15011,14 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Gets or sets the web service URL. + Initializes a new instance of the class. - - - - - Gets or sets the Web service method name. Only used with Soap. - - - - - - Gets or sets the Web service namespace. Only used with Soap. - - - - - - Gets or sets the protocol to be used when calling web service. - - - - - - Should we include the BOM (Byte-order-mark) for UTF? Influences the property. - - This will only work for UTF-8. - - - - - Gets or sets the encoding. - - + Name of the target @@ -14205,6 +15059,43 @@ + + + Gets or sets the web service URL. + + + + + + Gets or sets the Web service method name. Only used with Soap. + + + + + + Gets or sets the Web service namespace. Only used with Soap. + + + + + + Gets or sets the protocol to be used when calling web service. + + + + + + Should we include the BOM (Byte-order-mark) for UTF? Influences the property. + + This will only work for UTF-8. + + + + + Gets or sets the encoding. + + + Asynchronous request queue. @@ -14217,6 +15108,27 @@ Request limit. The overflow action. + + + Enqueues another item. If the queue is overflown the appropriate + action is taken as specified by . + + The log event info. + Queue was empty before enqueue + + + + Dequeues a maximum of count items from the queue + and adds returns the list containing them. + + Maximum number of items to be dequeued (-1 means everything). + The array of log events. + + + + Clears the queue. + + Gets or sets the request limit. @@ -14233,26 +15145,6 @@ Gets the number of requests currently in the queue. - - - Enqueues another item. If the queue is overflown the appropriate - action is taken as specified by . - - The log event info. - - - - Dequeues a maximum of count items from the queue - and adds returns the list containing them. - - Maximum number of items to be dequeued. - The array of log events. - - - - Clears the queue. - - Provides asynchronous, buffered execution of target writes. @@ -14290,25 +15182,113 @@ + + + Base class for targets wrap other (single) targets. + + + + + Returns the text representation of the object. Used for diagnostics. + + A string that describes the target. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + + + + Writes logging event to the log target. Must be overridden in inheriting + classes. + + Logging event to be written out. + + + + Gets or sets the target that is wrapped by this target. + + + - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Maximum number of requests in the queue. The action to be taken when the queue overflows. + + + Waits for the lazy writer thread to finish writing messages. + + The asynchronous continuation. + + + + Initializes the target by starting the lazy writer timer. + + + + + Shuts down the lazy writer timer. + + + + + Starts the lazy writer thread which periodically writes + queued log messages. + + + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + + + + Stops the lazy writer thread. + + + + + Adds the log event to asynchronous queue to be processed by + the lazy writer thread. + + The log event. + + The is called + to ensure that the log event can be processed in another thread. + + + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -14340,44 +15320,6 @@ Gets the queue of lazy writer thread requests. - - - Waits for the lazy writer thread to finish writing messages. - - The asynchronous continuation. - - - - Initializes the target by starting the lazy writer timer. - - - - - Shuts down the lazy writer timer. - - - - - Starts the lazy writer thread which periodically writes - queued log messages. - - - - - Stops the lazy writer thread. - - - - - Adds the log event to asynchronous queue to be processed by - the lazy writer thread. - - The log event. - - The is called - to ensure that the log event can be processed in another thread. - - The action to be taken when the queue overflows. @@ -14418,15 +15360,25 @@ - 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} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. @@ -14445,30 +15397,60 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Size of the buffer. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Size of the buffer. The flush timeout. + + + Flushes pending events in the buffer (if any). + + The asynchronous continuation. + + + + Initializes the target. + + + + + Closes the target by flushing pending events in the buffer (if any). + + + + + Adds the specified log event to the buffer and flushes + the buffer in case the buffer gets full. + + The log event. + Gets or sets the number of log events to be buffered. @@ -14493,29 +15475,6 @@ - - - Flushes pending events in the buffer (if any). - - The asynchronous continuation. - - - - Initializes the target. - - - - - Closes the target by flushing pending events in the buffer (if any). - - - - - Adds the specified log event to the buffer and flushes - the buffer in case the buffer gets full. - - The log event. - A base class for targets which wrap other (multiple) targets @@ -14524,15 +15483,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. - - - Gets the collection of targets managed by this compound target. - - Returns the text representation of the object. Used for diagnostics. @@ -14551,6 +15505,11 @@ The asynchronous continuation. + + + Gets the collection of targets managed by this compound target. + + Provides fallback-on-error. @@ -14576,17 +15535,18 @@ Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The targets. - + - Gets or sets a value indicating whether to return to the first target after any successful write. + Initializes a new instance of the class. - + The targets. @@ -14601,6 +15561,12 @@ stored in . + + + Gets or sets a value indicating whether to return to the first target after any successful write. + + + Filtering rule for . @@ -14651,22 +15617,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The wrapped target. The condition. - + - Gets or sets the condition expression. Log events who meet this condition will be forwarded - to the wrapped target. + Initializes a new instance of the class. - + The wrapped target. + The condition. @@ -14676,6 +15643,13 @@ Log event. + + + Gets or sets the condition expression. Log events who meet this condition will be forwarded + to the wrapped target. + + + Filters buffered log entries based on a set of conditions that are evaluated on a group of events. @@ -14707,9 +15681,30 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + + + + Evaluates all filtering rules to find the first one that matches. + The matching rule determines the filtering condition to be applied + to all items in a buffer. If no condition matches, default filter + is applied to the array of log events. + + Array of log events to be post-filtered. + Gets or sets the default filter to be applied when no specific rule matches. @@ -14724,15 +15719,6 @@ - - - Evaluates all filtering rules to find the first one that matches. - The matching rule determines the filtering condition to be applied - to all items in a buffer. If no condition matches, default filter - is applied to the array of log events. - - Array of log events to be post-filtered. - Sends log messages to a randomly selected target. @@ -14756,12 +15742,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14793,21 +15786,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The wrapped target. The repeat count. - + - Gets or sets the number of times to repeat each log message. + Initializes a new instance of the class. - + The wrapped target. + The repeat count. @@ -14815,6 +15810,12 @@ The log event. + + + Gets or sets the number of times to repeat each log message. + + + Retries in case of write error. @@ -14837,17 +15838,32 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. The retry count. The retry delay milliseconds. + + + Writes the specified log event to the wrapped target, retrying and pausing in case of an error. + + The log event. + Gets or sets the number of retries that should be attempted on the wrapped target in case of a failure. @@ -14860,12 +15876,6 @@ - - - Writes the specified log event to the wrapped target, retrying and pausing in case of an error. - - The log event. - Distributes log events to targets in a round-robin fashion. @@ -14889,12 +15899,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14934,12 +15951,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14957,145 +15981,16 @@ Logging events to be written out. - - - Base class for targets wrap other (single) targets. - - - - - Gets or sets the target that is wrapped by this target. - - - - - - Returns the text representation of the object. Used for diagnostics. - - A string that describes the target. - - - - Flush any pending log messages (in case of asynchronous targets). - - The asynchronous continuation. - - - - Writes logging event to the log target. Must be overridden in inheriting - classes. - - Logging event to be written out. - Current local time retrieved directly from DateTime.Now. - - - Gets current local time directly from DateTime.Now. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to local time. - - - - - Current UTC time retrieved directly from DateTime.UtcNow. - - - - - Gets current UTC time directly from DateTime.UtcNow. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to UTC time. - - - - - Fast time source that updates current time only once per tick (15.6 milliseconds). - - - - - Gets raw uncached time from derived time source. - - - - - Gets current time cached for one system tick (15.6 milliseconds). - - - - - Fast local time source that is updated once per tick (15.6 milliseconds). - - - - - Gets uncached local time directly from DateTime.Now. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to local time. - - - - - Fast UTC time source that is updated once per tick (15.6 milliseconds). - - - - - Gets uncached UTC time directly from DateTime.UtcNow. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to UTC time. - - Defines source of current time. - - - Gets current time. - - - - - Gets or sets current global time source used in all log events. - - - Default time source is . - - Returns a that represents this instance. @@ -15129,6 +16024,105 @@ + + + Gets current time. + + + + + Gets or sets current global time source used in all log events. + + + Default time source is . + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to local time. + + + + + Gets current local time directly from DateTime.Now. + + + + + Current UTC time retrieved directly from DateTime.UtcNow. + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to UTC time. + + + + + Gets current UTC time directly from DateTime.UtcNow. + + + + + Fast time source that updates current time only once per tick (15.6 milliseconds). + + + + + Gets raw uncached time from derived time source. + + + + + Gets current time cached for one system tick (15.6 milliseconds). + + + + + Fast local time source that is updated once per tick (15.6 milliseconds). + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to local time. + + + + + Gets uncached local time directly from DateTime.Now. + + + + + Fast UTC time source that is updated once per tick (15.6 milliseconds). + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to UTC time. + + + + + Gets uncached UTC time directly from DateTime.UtcNow. + + Marks class as a time source and assigns a name to it. @@ -15136,25 +16130,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the time source. - - - 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. - - diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.dll new file mode 100644 index 0000000..095cf6c Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.xml similarity index 92% rename from MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.xml index 95aa0e1..1895c31 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/sl5/NLog.xml @@ -475,16 +475,6 @@ The log event. The continuation. - - - Gets the log event. - - - - - Gets the continuation. - - Implements the operator ==. @@ -518,6 +508,16 @@ A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + + + Gets the log event. + + + + + Gets the continuation. + + NLog internal logger. @@ -538,40 +538,6 @@ Set the config of the InternalLogger with defaults and config. - - - Gets or sets the minimal internal log level. - - If set to , then messages of the levels , and will be written. - - - - Gets or sets a value indicating whether internal messages should be written to the console output stream. - - Your application must be a console application. - - - - Gets or sets a value indicating whether internal messages should be written to the console error stream. - - Your application must be a console application. - - - - Gets or sets the file path of the internal log file. - - A value of value disables internal logging to a file. - - - - Gets or sets the text writer that will receive internal logs. - - - - - Gets or sets a value indicating whether timestamp should be included in internal log output. - - Logs the specified message without an at the specified level. @@ -633,6 +599,388 @@ The assembly to log. + + + Logs the specified message without an at the Trace level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + Log message. + + + + Logs the specified message with an at the Trace level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Trace level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Debug level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Debug level. + + Log message. + + + + Logs the specified message with an at the Debug level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Debug level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Info level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Info level. + + Log message. + + + + Logs the specified message with an at the Info level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Info level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Warn level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Warn level. + + Log message. + + + + Logs the specified message with an at the Warn level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Warn level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Error level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Error level. + + Log message. + + + + Logs the specified message with an at the Error level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Error level. + + Exception to be logged. + Log message. + + + + Logs the specified message without an at the Fatal level. + + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Fatal level. + + Log message. + + + + Logs the specified message with an at the Fatal level. + + Exception to be logged. + Message which may include positional parameters. + Arguments to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + + + + Logs the specified message with an at the Fatal level. + + Exception to be logged. + Log message. + + + + Gets or sets the minimal internal log level. + + If set to , then messages of the levels , and will be written. + + + + Gets or sets a value indicating whether internal messages should be written to the console output stream. + + Your application must be a console application. + + + + Gets or sets a value indicating whether internal messages should be written to the console error stream. + + Your application must be a console application. + + + + Gets or sets the file path of the internal log file. + + A value of value disables internal logging to a file. + + + + Gets or sets the text writer that will receive internal logs. + + + + + Gets or sets a value indicating whether timestamp should be included in internal log output. + + Gets a value indicating whether internal log includes Trace messages. @@ -663,174 +1011,6 @@ Gets a value indicating whether internal log includes Fatal messages. - - - Logs the specified message without an at the Trace level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Trace level. - - Log message. - - - - Logs the specified message with an at the Trace level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Trace level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Debug level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Debug level. - - Log message. - - - - Logs the specified message with an at the Debug level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Debug level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Info level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Info level. - - Log message. - - - - Logs the specified message with an at the Info level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Info level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Warn level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Warn level. - - Log message. - - - - Logs the specified message with an at the Warn level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Warn level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Error level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Error level. - - Log message. - - - - Logs the specified message with an at the Error level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Error level. - - Exception to be logged. - Log message. - - - - Logs the specified message without an at the Fatal level. - - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message without an at the Fatal level. - - Log message. - - - - Logs the specified message with an at the Fatal level. - - Exception to be logged. - Message which may include positional parameters. - Arguments to the message. - - - - Logs the specified message with an at the Fatal level. - - Exception to be logged. - Log message. - A cyclic buffer of object. @@ -838,17 +1018,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Buffer size. Whether buffer should grow as it becomes full. The maximum number of items that the buffer can grow to. - - - Gets the number of items in the array. - - Adds the specified log event to the buffer. @@ -862,64 +1037,16 @@ Events in the buffer. + + + Gets the number of items in the array. + + Condition and expression. - - - Initializes a new instance of the class. - - Left hand side of the AND expression. - Right hand side of the AND expression. - - - - Gets the left hand side of the AND expression. - - - - - Gets the right hand side of the AND expression. - - - - - Returns a string representation of this expression. - - A concatenated '(Left) and (Right)' string. - - - - Evaluates the expression by evaluating and recursively. - - Evaluation context. - The value of the conjunction operator. - - - - Exception during evaluation of condition expression. - - - - - 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. - Base class for representing nodes in condition expression trees. @@ -954,6 +1081,59 @@ Evaluation context. Expression result. + + + Initializes a new instance of the class. + + Left hand side of the AND expression. + Right hand side of the AND expression. + + + + Returns a string representation of this expression. + + A concatenated '(Left) and (Right)' string. + + + + Evaluates the expression by evaluating and recursively. + + Evaluation context. + The value of the conjunction operator. + + + + Gets the left hand side of the AND expression. + + + + + Gets the right hand side of the AND expression. + + + + + Exception during evaluation of condition expression. + + + + + 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. + Condition layout expression (represented by a string literal @@ -962,16 +1142,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The layout. - - - Gets the layout. - - The layout. - Returns a string representation of this expression. @@ -986,6 +1160,12 @@ Evaluation context. The value of the layout. + + + Gets the layout. + + The layout. + Condition level expression (represented by the level keyword). @@ -1011,16 +1191,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Literal value. - - - Gets the literal value. - - The literal value. - Returns a string representation of the expression. @@ -1034,6 +1208,12 @@ Evaluation context. The literal value as passed in the constructor. + + + Gets the literal value. + + The literal value. + Condition logger name expression (represented by the logger keyword). @@ -1075,9 +1255,27 @@ Marks class as a log event Condition and assigns a name to it. + + + Attaches a simple name to an item (such as , + , , etc.). + + + + + Initializes a new instance of the class. + + The name of the item. + + + + Gets the name of the item. + + The name of the item. + - Initializes a new instance of the class. + Initializes a new instance of the class. Condition method name. @@ -1088,23 +1286,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the condition method. of the condition method. The method parameters. - - - Gets the method info. - - - - - Gets the method parameters. - - The method parameters. - Returns a string representation of the expression. @@ -1120,6 +1307,17 @@ Evaluation context. Expression result. + + + Gets the method info. + + + + + Gets the method parameters. + + The method parameters. + A bunch of utility methods (mostly predicates) which can be used in @@ -1189,16 +1387,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The expression. - - - Gets the expression to be negated. - - The expression. - Returns a string representation of the expression. @@ -1214,6 +1406,12 @@ Evaluation context. Expression result. + + + Gets the expression to be negated. + + The expression. + Condition or expression. @@ -1221,23 +1419,11 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Left hand side of the OR expression. Right hand side of the OR expression. - - - Gets the left expression. - - The left expression. - - - - Gets the right expression. - - The right expression. - Returns a string representation of the expression. @@ -1253,6 +1439,18 @@ Evaluation context. The value of the alternative operator. + + + Gets the left expression. + + The left expression. + + + + Gets the right expression. + + The right expression. + Exception during parsing of condition expression. @@ -1260,18 +1458,18 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -1325,30 +1523,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The left expression. The right expression. The relational operator. - - - Gets the left expression. - - The left expression. - - - - Gets the right expression. - - The right expression. - - - - Gets the relational operator. - - The operator. - Returns a string representation of the expression. @@ -1373,6 +1553,70 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + + + + Gets the left expression. + + The left expression. + + + + Gets the right expression. + + The right expression. + + + + Gets the relational operator. + + The operator. + Relational operators used in conditions. @@ -1419,30 +1663,6 @@ The string reader. - - - Gets the token position. - - The token position. - - - - Gets the type of the token. - - The type of the token. - - - - Gets the token value. - - The token value. - - - - Gets the value of a string token. - - The string token value. - Asserts current token type and advances to the next token. @@ -1509,6 +1729,30 @@ current char is match + + + Gets the token position. + + The token position. + + + + Gets the type of the token. + + The type of the token. + + + + Gets the token value. + + The token value. + + + + Gets the value of a string token. + + The string token value. + Mapping between characters and token types for punctuations. @@ -1534,7 +1778,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -1550,7 +1794,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The type of the array item. The XML element name that represents the item. @@ -1583,6 +1827,42 @@ The assemblies to scan for named items. + + + Registers named items from the assembly. + + The assembly. + + + + Registers named items from the assembly. + + The assembly. + Item name prefix. + + + + Clears the contents of all factories. + + + + + Registers the type. + + The type to register. + The item name prefix. + + + + Builds the default configuration item factory. + + Default factory. + + + + Registers items in NLog.Extended.dll using late-bound types, so that we don't need a reference to NLog.Extended.dll. + + Gets or sets default singleton instance of . @@ -1642,42 +1922,6 @@ The condition method factory. - - - Registers named items from the assembly. - - The assembly. - - - - Registers named items from the assembly. - - The assembly. - Item name prefix. - - - - Clears the contents of all factories. - - - - - Registers the type. - - The type to register. - The item name prefix. - - - - Builds the default configuration item factory. - - Default factory. - - - - Registers items in NLog.Extended.dll using late-bound types, so that we don't need a reference to NLog.Extended.dll. - - Attribute used to mark the default parameters for layout renderers. @@ -1685,7 +1929,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -1735,6 +1979,48 @@ The base type of each item. The type of the attribute used to annotate items. + + + Represents a factory of named items (such as targets, layouts, layout renderers, etc.). + + Base type for each item instance. + Item definition type (typically or ). + + + + Registers new item definition. + + Name of the item. + Item definition. + + + + Tries to get registered item definition. + + Name of the item. + Reference to a variable which will store the item definition. + Item definition. + + + + Creates item instance. + + Name of the item. + Newly created item instance. + + + + Tries to create an item instance. + + Name of the item. + The result. + True if instance was created successfully, false otherwise. + + + + Provides means to populate factories of named items (such as targets, layouts, layout renderers, etc.). + + Scans the assembly. @@ -1791,11 +2077,6 @@ The name of the item. Created item. - - - Provides means to populate factories of named items (such as targets, layouts, layout renderers, etc.). - - Implemented by objects which support installation and uninstallation. @@ -1822,43 +2103,6 @@ Value indicating whether the item is installed or null if it is not possible to determine. - - - Represents a factory of named items (such as targets, layouts, layout renderers, etc.). - - Base type for each item instance. - Item definition type (typically or ). - - - - Registers new item definition. - - Name of the item. - Item definition. - - - - Tries to get registered item definition. - - Name of the item. - Reference to a variable which will store the item definition. - Item definition. - - - - Creates item instance. - - Name of the item. - Newly created item instance. - - - - Tries to create an item instance. - - Name of the item. - The result. - True if instance was created successfully, false otherwise. - Provides context for install/uninstall operations. @@ -1875,26 +2119,6 @@ The log output. - - - Gets or sets the installation log level. - - - - - Gets or sets a value indicating whether to ignore failures during installation. - - - - - Gets the installation parameters. - - - - - Gets or sets the log output. - - Logs the specified trace message. @@ -1941,6 +2165,26 @@ Log event info object. + + + Gets or sets the installation log level. + + + + + Gets or sets a value indicating whether to ignore failures during installation. + + + + + Gets the installation parameters. + + + + + Gets or sets the log output. + + Keeps logging configuration and provides simple API @@ -1955,51 +2199,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Use the old exception log handling of NLog 3.0? - - - - - Gets the variables defined in the configuration. - - - - - Gets a collection of named targets specified in the configuration. - - - A list of named targets. - - - Unnamed targets (such as those wrapped by other targets) are not returned. - - - - - Gets the collection of file names which should be watched for changes by NLog. - - - - - Gets the collection of logging rules. - - - - - Gets or sets the default culture info to use as . - - - Specific culture info or null to use - - - - - Gets all targets. + Compare on name @@ -2134,8 +2339,7 @@ - Log to the internal (NLog) logger the information about the and associated with this instance. + Log to the internal (NLog) logger the information about the and associated with this instance. The information are only recorded in the internal logger if Debug level is enabled, otherwise nothing is @@ -2153,6 +2357,55 @@ Validates the configuration. + + + Use the old exception log handling of NLog 3.0? + + + + + Gets the variables defined in the configuration. + + + + + Gets a collection of named targets specified in the configuration. + + + A list of named targets. + + + Unnamed targets (such as those wrapped by other targets) are not returned. + + + + + Gets the collection of file names which should be watched for changes by NLog. + + + + + Gets the collection of logging rules. + + + + + Gets or sets the default culture info to use as . + + + Specific culture info or null to use + + + + + Gets all targets. + + + + + Compare on name + + Arguments for events. @@ -2160,7 +2413,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The old configuration. The new configuration. @@ -2184,12 +2437,12 @@ - Create an empty . + Create an empty . - Create a new with a and which writes to . + Create a new with a and which writes to . Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Minimum log level needed to trigger this rule. @@ -2198,7 +2451,7 @@ - Create a new with a which writes to . + Create a new with a which writes to . Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Minimum log level needed to trigger this rule. @@ -2206,44 +2459,11 @@ - Create a (disabled) . You should call or see cref="EnableLoggingForLevels"/> to enable logging. + Create a (disabled) . You should call or see cref="EnableLoggingForLevels"/> to enable logging. Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends. Target to be written to when the rule matches. - - - Gets a collection of targets that should be written to when this rule matches. - - - - - Gets a collection of child rules to be evaluated when this rule matches. - - - - - Gets a collection of filters to be checked before writing to targets. - - - - - Gets or sets a value indicating whether to quit processing any further rule when this one matches. - - - - - Gets or sets logger name pattern. - - - Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends but not anywhere else. - - - - - Gets the collection of log levels enabled by this rule. - - Enables logging for a particular level. @@ -2285,6 +2505,39 @@ String to be matched. A value of when the name matches, otherwise. + + + Gets a collection of targets that should be written to when this rule matches. + + + + + Gets a collection of child rules to be evaluated when this rule matches. + + + + + Gets a collection of filters to be checked before writing to targets. + + + + + Gets or sets a value indicating whether to quit processing any further rule when this one matches. + + + + + Gets or sets logger name pattern. + + + Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends but not anywhere else. + + + + + Gets the collection of log levels enabled by this rule. + + Factory for locating methods. @@ -2292,16 +2545,6 @@ The type of the class marker attribute. The type of the method marker attribute. - - - Gets a collection of all registered items in the factory. - - - Sequence of key/value pairs where each key represents the name - of the item and value is the of - the item. - - Scans the assembly for classes marked with @@ -2353,23 +2596,15 @@ The result. A value of true if the method was found, false otherwise. - + - Attaches a simple name to an item (such as , - , , etc.). + Gets a collection of all registered items in the factory. - - - - Initializes a new instance of the class. - - The name of the item. - - - - Gets the name of the item. - - The name of the item. + + Sequence of key/value pairs where each key represents the name + of the item and value is the of + the item. + @@ -2413,26 +2648,6 @@ Prevents a default instance of the class from being created. - - - Gets the element name. - - - - - Gets the dictionary of attribute values. - - - - - Gets the collection of child elements. - - - - - Gets the value of the element. - - Returns children elements with the specified element name. @@ -2478,6 +2693,26 @@ The allowed names. + + + Gets the element name. + + + + + Gets the dictionary of attribute values. + + + + + Gets the collection of child elements. + + + + + Gets the value of the element. + + Attribute used to mark the required parameters for targets, @@ -2573,36 +2808,38 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. Ignore any errors during configuration. - Initializes a new instance of the class. + Initializes a new instance of the class. Configuration file to be read. Ignore any errors during configuration. - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. @@ -2613,22 +2850,22 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). - The to which to apply any applicable configuration values. + The to which to apply any applicable configuration values. - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). @@ -2636,36 +2873,35 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. containing the configuration section. Name of the file that contains the element (to be used as a base for including other files). Ignore any errors during configuration. - The to which to apply any applicable configuration values. - - - - Did the Succeeded? true= success, false= error, null = initialize not started yet. - - - - - Gets or sets a value indicating whether all of the configuration files - should be watched for changes and reloaded automatically when changed. - - - - - Gets the collection of file names which should be watched for changes by NLog. - This is the list of configuration files processed. - If the autoReload attribute is not set it returns empty collection. - + The to which to apply any applicable configuration values. - Re-reads the original configuration file and returns the new object. + Re-reads the original configuration file and returns the new object. + + The new object. + + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. - The new object. @@ -2746,6 +2982,24 @@ + + + Did the Succeeded? true= success, false= error, null = initialize not started yet. + + + + + Gets or sets a value indicating whether all of the configuration files + should be watched for changes and reloaded automatically when changed. + + + + + Gets the collection of file names which should be watched for changes by NLog. + This is the list of configuration files processed. + If the autoReload attribute is not set it returns empty collection. + + Matches when the specified condition is met. @@ -2755,23 +3009,6 @@ described here. - - - Gets or sets the condition expression. - - - - - - Checks whether log event should be logged or not. - - Log event. - - - if the log event should be ignored
- - if the filter doesn't want to decide
- - if the log event should be logged
- .
-
An abstract filter class. Provides a way to eliminate log messages @@ -2780,15 +3017,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets the action to be taken when filter matches. - - - Gets the result of evaluating filter against given log event. @@ -2807,6 +3038,29 @@ - if the log event should be logged
. + + + Gets or sets the action to be taken when filter matches. + + + + + + Checks whether log event should be logged or not. + + Log event. + + - if the log event should be ignored
+ - if the filter doesn't want to decide
+ - if the log event should be logged
+ .
+
+ + + Gets or sets the condition expression. + + + Marks class as a layout renderer and assigns a name to it. @@ -2814,7 +3068,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the filter. @@ -2855,7 +3109,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. @@ -2871,6 +3125,17 @@ This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. + + Log event. + + - if the log event should be ignored
+ - if the filter doesn't want to decide
+ - if the log event should be logged
+ .
+
Gets or sets a value indicating whether to ignore case when comparing strings. @@ -2883,7 +3148,13 @@ - + + + Matches when the calculated layout is equal to the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. @@ -2894,12 +3165,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout is equal to the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - Gets or sets a value indicating whether to ignore case when comparing strings. @@ -2912,7 +3177,13 @@ - + + + Matches when the calculated layout does NOT contain the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + Checks whether log event should be logged or not. @@ -2923,12 +3194,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout does NOT contain the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - Gets or sets the substring to be matched. @@ -2941,7 +3206,18 @@ - + + + Matches when the calculated layout is NOT equal to the specified substring. + This filter is deprecated in favor of <when /> which is based on conditions. + + + + + Initializes a new instance of the class. + + + Checks whether log event should be logged or not. @@ -2952,17 +3228,6 @@ - if the log event should be logged
.
- - - Matches when the calculated layout is NOT equal to the specified substring. - This filter is deprecated in favor of <when /> which is based on conditions. - - - - - Initializes a new instance of the class. - - Gets or sets a string to compare the layout to. @@ -2975,17 +3240,6 @@ - - - Checks whether log event should be logged or not. - - Log event. - - - if the log event should be ignored
- - if the filter doesn't want to decide
- - if the log event should be logged
- .
-
A fluent class to build log events for NLog. @@ -3004,11 +3258,6 @@ The to send the log event. The for the log event. - - - Gets the created by the builder. - - Sets the information of the logging event. @@ -3139,6 +3388,11 @@ If condition is true, write log event; otherwise ignore event. + + + Gets the created by the builder. + + Extension methods for NLog . @@ -3291,6 +3545,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3314,896 +3574,11 @@ Provides logging interface and utility functions. - - - 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 . - - - - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Trace level. - - Type of the value. - The value to be written. - - - - 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 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 Trace level. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Trace level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Trace level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 Trace level. - - Log message. - - - - Writes the diagnostic message at the Trace level using the specified parameters. - - A containing format items. - Arguments to format. - - - - 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 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 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 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. - 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 Trace level using the specified parameters. - - 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 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. - 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 Trace 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 Debug level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Debug level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Debug level. - - 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Debug level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Debug level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Debug 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 Debug level. - - Log message. - - - - Writes the diagnostic message at the Debug level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Debug level. - - A to be written. - An exception to be logged. - - - - 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 Debug 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 Debug 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 first argument to format. - The second argument to format. - - - - Writes the diagnostic message at the Debug level using the specified parameters. - - 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. - - 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. - - 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. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Info level. - - 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Info level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Info level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Info 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 Info level. - - Log message. - - - - Writes the diagnostic message at the Info level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Info level. - - A to be written. - An exception to be logged. - - - - 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 Info 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 Info 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 first argument to format. - The second argument to format. - - - - Writes the diagnostic message at the Info level using the specified parameters. - - 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 Info 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 Info 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 Warn level using the specified format provider and format parameters. - - - Writes the diagnostic message at the Warn level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Warn level. - - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - - - - Writes the diagnostic message at the Warn 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 Warn level. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Warn level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Warn level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message at the Warn 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 Warn level. - - Log message. - - - - Writes the diagnostic message at the Warn level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Warn level. - - A to be written. - An exception to be logged. - - - - 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 containing one format item. - The argument to format. - - - - Writes the diagnostic message at the Warn 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 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 first argument to format. - The second argument to format. - - - - 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 first argument to format. - The second argument to format. - - - - 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 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. - - 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. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Error level. - - Type of the value. - An IFormatProvider that supplies culture-specific formatting information. - The value to be written. - - - - Writes the diagnostic message at the Error 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Error level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Error level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 format items. - Arguments to format. - - - - Writes the diagnostic message at the Error level. - - Log message. - - - - Writes the diagnostic message at the Error level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Error level. - - A to be written. - An exception to be logged. - - - - 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 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 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 first argument to format. - The second argument to format. - - - - 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 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. - - 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 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 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 Fatal level. - - Type of the value. - The value to be written. - - - - Writes the diagnostic message at the Fatal 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. - - 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. - - A to be written. - An exception to be logged. - - - - Writes the diagnostic message and exception at the Fatal level. - - A to be written. - An exception to be logged. - Arguments to format. - - - - Writes the diagnostic message and exception at the Fatal level. - - An IFormatProvider that supplies culture-specific formatting information. - A to be written. - An exception to be logged. - Arguments to format. - - - - 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 format items. - Arguments to format. - - - - Writes the diagnostic message at the Fatal level. - - Log message. - - - - Writes the diagnostic message at the Fatal level using the specified parameters. - - A containing format items. - Arguments to format. - - - - Writes the diagnostic message and exception at the Fatal level. - - A to be written. - An exception to be logged. - - - - 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 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 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 first argument to format. - The second 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. - A containing one format item. - 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. - - 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. - Logger with only generic methods (passing 'LogLevel' to methods) and core properties. - - - 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 specified level. @@ -4379,6 +3754,963 @@ The second argument to format. The third argument to format. + + + Occurs when logger configuration changes. + + + + + Gets the name of the logger. + + + + + Gets the factory that created this logger. + + + + + Provides an interface to execute System.Actions without surfacing any exceptions raised for that action. + + + + + Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. + + Action to execute. + + + + Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. + The exception is not propagated outside of this method; a default value is returned instead. + + Return type of the provided function. + Function to run. + Result returned by the provided function or the default value of type in case of exception. + + + + Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. + The exception is not propagated outside of this method; a fallback value is returned instead. + + Return type of the provided function. + Function to run. + Fallback value to return in case of exception. + Result returned by the provided function or fallback value in case of exception. + + + + Writes the diagnostic message at the Trace level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Trace level. + + Type of the value. + The value to be written. + + + + 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 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 Trace level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Trace level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 Trace level. + + Log message. + + + + Writes the diagnostic message at the Trace level using the specified parameters. + + A containing format items. + Arguments to format. + + + + 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 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 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 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. + 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 Trace level using the specified parameters. + + 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 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. + 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 Trace 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 Debug level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Debug level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Debug level. + + 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Debug level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Debug 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 Debug level. + + Log message. + + + + Writes the diagnostic message at the Debug level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + + + + 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 Debug 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 Debug 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 first argument to format. + The second argument to format. + + + + Writes the diagnostic message at the Debug level using the specified parameters. + + 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. + + 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. + + 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. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Info level. + + 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Info level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Info 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 Info level. + + Log message. + + + + Writes the diagnostic message at the Info level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + + + + 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 Info 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 Info 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 first argument to format. + The second argument to format. + + + + Writes the diagnostic message at the Info level using the specified parameters. + + 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 Info 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 Info 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 Warn level using the specified format provider and format parameters. + + + Writes the diagnostic message at the Warn level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Warn level. + + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. + + + + Writes the diagnostic message at the Warn 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 Warn level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Warn level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message at the Warn 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 Warn level. + + Log message. + + + + Writes the diagnostic message at the Warn level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + + + + 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 containing one format item. + The argument to format. + + + + Writes the diagnostic message at the Warn 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 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 first argument to format. + The second argument to format. + + + + 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 first argument to format. + The second argument to format. + + + + 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 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. + + 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. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Error level. + + Type of the value. + An IFormatProvider that supplies culture-specific formatting information. + The value to be written. + + + + Writes the diagnostic message at the Error 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Error level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 format items. + Arguments to format. + + + + Writes the diagnostic message at the Error level. + + Log message. + + + + Writes the diagnostic message at the Error level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + + + + 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 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 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 first argument to format. + The second argument to format. + + + + 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 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. + + 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 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 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 Fatal level. + + Type of the value. + The value to be written. + + + + Writes the diagnostic message at the Fatal 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. + + 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. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Arguments to format. + + + + Writes the diagnostic message and exception at the Fatal level. + + An IFormatProvider that supplies culture-specific formatting information. + A to be written. + An exception to be logged. + Arguments to format. + + + + 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 format items. + Arguments to format. + + + + Writes the diagnostic message at the Fatal level. + + Log message. + + + + Writes the diagnostic message at the Fatal level using the specified parameters. + + A containing format items. + Arguments to format. + + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + + + + 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 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 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 first argument to format. + The second 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. + A containing one format item. + 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. + + 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. + + + + 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 . + Provides untyped IDictionary interface on top of generic IDictionary. @@ -4392,6 +4724,56 @@ The implementation. + + + Adds an element with the provided key and value to the object. + + The to use as the key of the element to add. + The to use as the value of the element to add. + + + + Removes all elements from the object. + + + + + Determines whether the object contains an element with the specified key. + + The key to locate in the object. + + True if the contains an element with the key; otherwise, false. + + + + + Returns an object for the object. + + + An object for the object. + + + + + Removes the element with the specified key from the object. + + The key of the element to remove. + + + + Copies the elements of the to an , starting at a particular index. + + The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. + The zero-based index in at which copying begins. + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + Gets an object containing the values in the object. @@ -4459,56 +4841,6 @@ Dictionary key. Value corresponding to key or null if not found - - - Adds an element with the provided key and value to the object. - - The to use as the key of the element to add. - The to use as the value of the element to add. - - - - Removes all elements from the object. - - - - - Determines whether the object contains an element with the specified key. - - The key to locate in the object. - - True if the contains an element with the key; otherwise, false. - - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in at which copying begins. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - Wrapper IDictionaryEnumerator. @@ -4516,10 +4848,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped. + + + Advances the enumerator to the next element of the collection. + + + True if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. + + + + + Sets the enumerator to its initial position, which is before the first element in the collection. + + Gets both the key and the value of the current dictionary entry. @@ -4556,19 +4901,6 @@ The current element in the collection. - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - UTF-8 BOM 239, 187, 191 @@ -4655,6 +4987,11 @@ Adapter for to + + + Interface for fakeable the current . Not fully implemented, please methods/properties as necessary. + + Initializes a new instance of the class. @@ -4666,11 +5003,6 @@ Gets a the current wrappered in a . - - - Interface for fakeable the current . Not fully implemented, please methods/properties as necessary. - - Base class for optimized file appenders. @@ -4678,11 +5010,56 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The create parameters. + + + Writes the specified bytes. + + The bytes. + + + + Flushes this instance. + + + + + Closes this instance. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Releases unmanaged and - optionally - managed resources. + + True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + + Updates the last write time of the file. + + + + + Updates the last write time of the file to the specified date. + + Date and time when the last write occurred in UTC. + + + + Creates the file stream. + + If set to true sets the file stream to allow shared writing. + A object which can be used to write to the file. + Gets the path of the file, including file extension. @@ -4713,57 +5090,6 @@ The file creation parameters. - - - Writes the specified bytes. - - The bytes. - - - - Flushes this instance. - - - - - Closes this instance. - - - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged and - optionally - managed resources. - - True to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Updates the last write time of the file. - - - - - Updates the last write time of the file to the specified date. - - Date and time when the last write occurred in UTC. - - - - Creates the file stream. - - If set to true sets the file stream to allow shared writing. - A object which can be used to write to the file. - Implementation of which caches @@ -4772,7 +5098,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -4787,12 +5113,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -4804,6 +5124,19 @@ Factory class which creates objects. + + + Interface implemented by all factories capable of creating file appenders. + + + + + 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. + Opens the appender for given file name and parameters. @@ -4842,21 +5175,6 @@ Factory used to create each appender. Parameters used for creating a file. - - - Gets the parameters which will be used for creating a file. - - - - - Gets the file appender factory used by all the appenders in this list. - - - - - Gets the number of appenders which the list can hold. - - It allocates the first slot in the list when the file name does not already in the list and clean up any @@ -4868,14 +5186,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -4892,18 +5202,26 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. + + + + Gets the parameters which will be used for creating a file. + + + + + Gets the file appender factory used by all the appenders in this list. + + + + + Gets the number of appenders which the list can hold. + @@ -4954,19 +5272,11 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - + - Interface implemented by all factories capable of creating file appenders. + Should we capture the last write time of a file? - - - 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 @@ -4975,7 +5285,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -4996,12 +5306,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5024,7 +5328,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the file. The parameters. @@ -5045,12 +5349,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5112,6 +5410,72 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -5132,18 +5496,6 @@ If is null and isn't a already, then the will get a locked by - - - 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 object initialization and termination. @@ -5170,6 +5522,22 @@ 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. @@ -5177,17 +5545,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The targets by level. Use the old exception log handling of NLog 3.0? - - - Use the old exception log handling of NLog 3.0? - - Gets targets for the specified level. @@ -5204,51 +5567,16 @@ A value of true if the specified level is enabled; otherwise, false. + + + Use the old exception log handling of NLog 3.0? + + Network sender which uses HTTP or HTTPS POST. - - - Initializes a new instance of the class. - - The network URL. - - - - Actually sends the given text over the specified protocol. - - The bytes to be sent. - Offset in buffer. - Number of bytes to send. - The async continuation to be invoked after the buffer has been sent. - To be overridden in inheriting classes. - - - - Creates instances of objects for given URLs. - - - - - Creates a new instance of the network sender based on a network URL. - - - URL that determines the network sender to be created. - - - The maximum queue size. - - - A newly created network sender. - - - - - Interface for mocking socket calls. - - A base class for all network senders. Supports one-way sending of messages @@ -5257,7 +5585,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The network URL. @@ -5266,16 +5594,6 @@ Finalizes an instance of the NetworkSender class. - - - Gets the address of the network endpoint. - - - - - Gets the last send time. - - Initializes this network sender. @@ -5342,6 +5660,56 @@ The address family. Parsed endpoint. + + + Gets the address of the network endpoint. + + + + + Gets the last send time. + + + + + Initializes a new instance of the class. + + The network URL. + + + + Actually sends the given text over the specified protocol. + + The bytes to be sent. + Offset in buffer. + Number of bytes to send. + The async continuation to be invoked after the buffer has been sent. + To be overridden in inheriting classes. + + + + Creates instances of objects for given URLs. + + + + + Creates a new instance of the network sender based on a network URL. + + + URL that determines the network sender to be created. + + + The maximum queue size. + + + A newly created network sender. + + + + + Interface for mocking socket calls. + + Default implementation of . @@ -5374,11 +5742,6 @@ Type of the socket. Type of the protocol. - - - Gets underlying socket instance. - - Closes the wrapped socket. @@ -5403,6 +5766,11 @@ Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + Gets underlying socket instance. + + Sends messages over a TCP network connection. @@ -5422,7 +5790,7 @@ The address family. Type of the socket. Type of the protocol. - Instance of which represents the socket. + Instance of which represents the socket. @@ -5492,6 +5860,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -5517,6 +5894,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -5630,20 +6012,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The text to be tokenized. - - - Current position in - - - - - Full text to be parsed - - Check current char while not changing the position. @@ -5664,6 +6036,16 @@ + + + Current position in + + + + + Full text to be parsed + + Implements a single-call guard around given continuation function. @@ -5686,15 +6068,6 @@ Provides helpers to sort log events and associated continuations. - - - Key selector delegate. - - The type of the value. - The type of the key. - Value to extract key information from. - Key selected from log event. - Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. @@ -5707,6 +6080,94 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + + + + Key selector delegate. + + The type of the value. + The type of the key. + Value to extract key information from. + Key selected from log event. + + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -5724,6 +6185,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -5746,6 +6223,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -5771,11 +6264,17 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The target. The filter chain. + + + Gets the stack trace usage. + + A value that determines stack trace handling. + Gets the target. @@ -5795,12 +6294,6 @@ The next item in the chain. This is for example the 'target2' logger in writeTo='target1,target2' - - - Gets the stack trace usage. - - A value that determines stack trace handling. - Helper for dealing with thread-local storage. @@ -5910,560 +6403,16 @@ - - - Provides an interface to execute System.Actions without surfacing any exceptions raised for that action. - - - - - Runs the provided action. If the action throws, the exception is logged at Error level. The exception is not propagated outside of this method. - - Action to execute. - - - - Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. - The exception is not propagated outside of this method; a default value is returned instead. - - Return type of the provided function. - Function to run. - Result returned by the provided function or the default value of type in case of exception. - - - - Runs the provided function and returns its result. If an exception is thrown, it is logged at Error level. - The exception is not propagated outside of this method; a fallback value is returned instead. - - Return type of the provided function. - Function to run. - Fallback value to return in case of exception. - Result returned by the provided function or fallback value in case of exception. - Log event context data. - - - Initializes a new instance of the class. - - - - - Gets or sets string that will be used to separate key/value pairs. - - - - - - Gets or sets how key/value pairs will be formatted. - - - - - - Renders all log event's properties and appends them to the specified . - - The to append the rendered data to. - Logging event. - - - - Designates a property of the class as an ambient property. - - - non-ambient: ${uppercase:${level}} - ambient : ${level:uppercase} - - - - - Initializes a new instance of the class. - - Ambient property name. - - - - Assembly version. - - - - - Renders assembly version and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - The call site (class name, method name and source information). - - - - - Initializes a new instance of the class. - - - - - 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 the method name will be cleaned up if it is detected as an anonymous delegate. - - - - - - Gets or sets the number of frames to skip. - - - - - Gets the level of stack trace information required by the implementing class. - - - - - Renders the call site and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - A counter value (increases on each layout rendering). - - - - - Initializes a new instance of the class. - - - - - 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. - - - - - - Renders the specified counter value and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Current date and time. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the culture used for rendering. - - - - - - Gets or sets the date format. Can be any argument accepted by DateTime.ToString(format). - - - - - - Gets or sets a value indicating whether to output UTC time instead of local time. - - - - - - Renders the current date and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - URI of the HTML page which hosts the current Silverlight application. - - - - - Renders the specified environmental information and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Log event context data. - - - - - Gets or sets the name of the item. - - - - - - Renders the specified log event context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Log event context data. See . - - - - - Log event context data with default options. - - - - - Gets or sets the name of the item. - - - - - - Format string for conversion from object to string. - - - - - Gets or sets the culture used for rendering. - - - - - - Renders the specified log event context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Exception information provided through - a call to one of the Logger.*Exception() methods. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the format of the output. Must be a comma-separated list of exception - properties: Message, Type, ShortType, ToString, Method, StackTrace. - This parameter value is case-insensitive. - - - - - - - - Gets or sets the format of the output of inner exceptions. Must be a comma-separated list of exception - properties: Message, Type, ShortType, ToString, Method, StackTrace. - This parameter value is case-insensitive. - - - - - - Gets or sets the separator used to concatenate parts specified in the Format. - - - - - - Gets or sets the maximum number of inner exceptions to include in the output. - By default inner exceptions are not enabled for compatibility with NLog 1.0. - - - - - - Gets or sets the separator between inner exceptions. - - - - - - Gets the formats of the output of inner exceptions to be rendered in target. - - - - - - - Gets the formats of the output to be rendered in target. - - - - - - - Renders the specified exception information and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Appends the Message of an Exception to the specified . - - The to append the rendered data to. - The exception containing the Message to append. - - - - Appends the method name from Exception's stack trace to the specified . - - The to append the rendered data to. - The Exception whose method name should be appended. - - - - Appends the stack trace from an Exception to the specified . - - The to append the rendered data to. - The Exception whose stack trace should be appended. - - - - Appends the result of calling ToString() on an Exception to the specified . - - The to append the rendered data to. - The Exception whose call to ToString() should be appended. - - - - Appends the type of an Exception to the specified . - - The to append the rendered data to. - The Exception whose type should be appended. - - - - Appends the short type of an Exception to the specified . - - The to append the rendered data to. - The Exception whose short type should be appended. - - - - Appends the contents of an Exception's Data property to the specified . - - The to append the rendered data to. - The Exception whose Data property elements should be appended. - - - - Split the string and then compile into list of Rendering formats. - - - - - - - Find name of method on stracktrace. - - Full stracktrace - - - - - Renders contents of the specified file. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the name of the file. - - - - - - Gets or sets the encoding used in the file. - - The encoding. - - - - - Renders the contents of the specified file and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - The information about the garbage collector. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the property to retrieve. - - - - - - Renders the selected process information. - - The to append the rendered data to. - Logging event. - - - - Gets or sets the property of System.GC to retrieve. - - - - - Total memory allocated. - - - - - Total memory allocated (perform full garbage collection first). - - - - - Gets the number of Gen0 collections. - - - - - Gets the number of Gen1 collections. - - - - - Gets the number of Gen2 collections. - - - - - Maximum generation number supported by GC. - - - - - Global Diagnostics Context item. Provided for compatibility with log4net. - - - - - Gets or sets the name of the item. - - - - - - Renders the specified Global Diagnostics Context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Globally-unique identifier (GUID). - - - - - Initializes a new instance of the class. - - - - - Gets or sets the GUID format as accepted by Guid.ToString() method. - - - - - - Renders a newly generated GUID string and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Installation parameter (passed to InstallNLogConfig). - - - - - Gets or sets the name of the parameter. - - - - - - Renders the specified installation parameter and appends it to the specified . - - The to append the rendered data to. - Logging event. - Render environmental information related to logging events. - - - Gets the logging configuration this target is part of. - - Returns a that represents this instance. @@ -6508,7 +6457,7 @@ - Renders the specified environmental information and appends it to the specified . + Renders the specified environmental information and appends it to the specified . The to append the rendered data to. Logging event. @@ -6529,6 +6478,557 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + + + + Gets the logging configuration this target is part of. + + + + + Initializes a new instance of the class. + + + + + Renders all log event's properties and appends them to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets string that will be used to separate key/value pairs. + + + + + + Gets or sets how key/value pairs will be formatted. + + + + + + Designates a property of the class as an ambient property. + + + non-ambient: ${uppercase:${level}} + ambient : ${level:uppercase} + + + + + Initializes a new instance of the class. + + Ambient property name. + + + + Assembly version. + + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. + + + + Renders assembly version and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + The (full) name of the assembly. If null, using the entry assembly. + + + + + 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 the method name will be cleaned up if it is detected as an anonymous delegate. + + + + + + Gets or sets the number of frames to skip. + + + + + 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. + + + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + + + + 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. + + + + + + Gets or sets the date format. Can be any argument accepted by DateTime.ToString(format). + + + + + + Gets or sets a value indicating whether to output UTC time instead of local time. + + + + + + URI of the HTML page which hosts the current Silverlight application. + + + + + Renders the specified environmental information and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Log event context data. + + + + + Renders the specified log event context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Log event context data. See . + + + + + Log event context data with default options. + + + + + Renders the specified log event context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Format string for conversion from object to string. + + + + + Gets or sets the culture used for rendering. + + + + + + Exception information provided through + a call to one of the Logger.*Exception() methods. + + + + + Initializes a new instance of the class. + + + + + Renders the specified exception information and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Appends the Message of an Exception to the specified . + + The to append the rendered data to. + The exception containing the Message to append. + + + + Appends the method name from Exception's stack trace to the specified . + + The to append the rendered data to. + The Exception whose method name should be appended. + + + + Appends the stack trace from an Exception to the specified . + + The to append the rendered data to. + The Exception whose stack trace should be appended. + + + + Appends the result of calling ToString() on an Exception to the specified . + + The to append the rendered data to. + The Exception whose call to ToString() should be appended. + + + + Appends the type of an Exception to the specified . + + The to append the rendered data to. + The Exception whose type should be appended. + + + + Appends the short type of an Exception to the specified . + + The to append the rendered data to. + The Exception whose short type should be appended. + + + + Appends the contents of an Exception's Data property to the specified . + + The to append the rendered data to. + The Exception whose Data property elements should be appended. + + + + Split the string and then compile into list of Rendering formats. + + + + + + + Find name of method on stracktrace. + + Full stracktrace + + + + + Gets or sets the format of the output. Must be a comma-separated list of exception + properties: Message, Type, ShortType, ToString, Method, StackTrace. + This parameter value is case-insensitive. + + + + + + + + Gets or sets the format of the output of inner exceptions. Must be a comma-separated list of exception + properties: Message, Type, ShortType, ToString, Method, StackTrace. + This parameter value is case-insensitive. + + + + + + Gets or sets the separator used to concatenate parts specified in the Format. + + + + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + + + + Gets or sets the maximum number of inner exceptions to include in the output. + By default inner exceptions are not enabled for compatibility with NLog 1.0. + + + + + + Gets or sets the separator between inner exceptions. + + + + + + Gets the formats of the output of inner exceptions to be rendered in target. + + + + + + + Gets the formats of the output to be rendered in target. + + + + + + + Renders contents of the specified file. + + + + + Initializes a new instance of the class. + + + + + Renders the contents of the specified file and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the file. + + + + + + Gets or sets the encoding used in the file. + + 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. + + + + + Total memory allocated. + + + + + Total memory allocated (perform full garbage collection first). + + + + + Gets the number of Gen0 collections. + + + + + Gets the number of Gen1 collections. + + + + + Gets the number of Gen2 collections. + + + + + Maximum generation number supported by GC. + + + + + Global Diagnostics Context item. Provided for compatibility with log4net. + + + + + Renders the specified Global Diagnostics Context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the item. + + + + + + Globally-unique identifier (GUID). + + + + + Initializes a new instance of the class. + + + + + Renders a newly generated GUID string and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the GUID format as accepted by Guid.ToString() method. + + + + + + Installation parameter (passed to InstallNLogConfig). + + + + + Renders the specified installation parameter and appends it to the specified . + + The to append the rendered data to. + Logging event. + + + + Gets or sets the name of the parameter. + + + Marks class as a layout renderer and assigns a name to it. @@ -6537,7 +7037,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the layout renderer, without the `${ }` @@ -6548,7 +7048,7 @@ - Renders the current log level and appends it to the specified . + Renders the current log level and appends it to the specified . The to append the rendered data to. Logging event. @@ -6564,29 +7064,29 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The literal text value. This is used by the layout compiler. + + + Renders the specified string literal and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the literal text. - - - Renders the specified string literal and appends it to the specified . - - The to append the rendered data to. - Logging event. - XML event description compatible with log4j, Chainsaw and NLogViewer. @@ -6594,14 +7094,21 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the XML logging event and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -6636,13 +7143,13 @@ Gets or sets a value indicating whether to include contents of the dictionary. - + Gets or sets a value indicating whether to include contents of the stack. - + @@ -6655,67 +7162,60 @@ Gets the level of stack trace information required by the implementing class. - - - Renders the XML logging event and appends it to the specified . - - The to append the rendered data to. - Logging event. - The logger name. + + + Renders the logger name and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to render short logger name (the part after the trailing dot character). - - - Renders the logger name and appends it to the specified . - - The to append the rendered data to. - Logging event. - The date and time in a long, sortable format yyyy-MM-dd HH:mm:ss.mmm. + + + Renders the date in the long format (yyyy-MM-dd HH:mm:ss.mmm) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders the date in the long format (yyyy-MM-dd HH:mm:ss.mmm) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Mapped Diagnostic Context item. Provided for compatibility with log4net. + + + Renders the specified MDC item and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the name of the item. - - - Renders the specified MDC item and appends it to the specified . - - The to append the rendered data to. - Logging event. - The formatted log message. @@ -6723,9 +7223,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the log message including any positional parameters and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to log exception along with message. @@ -6738,13 +7245,6 @@ - - - Renders the log message including any positional parameters and appends it to the specified . - - The to append the rendered data to. - Logging event. - Nested Diagnostic Context item. Provided for compatibility with log4net. @@ -6752,9 +7252,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Renders the specified Nested Diagnostics Context item and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the number of top stack frames to be rendered. @@ -6773,13 +7280,6 @@ - - - Renders the specified Nested Diagnostics Context item and appends it to the specified . - - The to append the rendered data to. - Logging event. - A newline literal. @@ -6787,7 +7287,7 @@ - Renders the specified string literal and appends it to the specified . + Renders the specified string literal and appends it to the specified . The to append the rendered data to. Logging event. @@ -6799,36 +7299,37 @@ - Renders the current process running time and appends it to the specified . + Renders the current process running time and appends it to the specified . The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + The short date in a sortable format yyyy-MM-dd. + + + Renders the current short date string (yyyy-MM-dd) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders the current short date string (yyyy-MM-dd) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Appends a date in format yyyy-MM-dd to the StringBuilder. @@ -6850,12 +7351,6 @@ Initializes a new instance of the class. - - - Gets or sets specific information to display. - - - Renders the specified environmental information and appends it to the specified . @@ -6863,6 +7358,12 @@ The to append the rendered data to. Logging event. + + + Gets or sets specific information to display. + + + Specifies application information to display in ${sl-appinfo} renderer. @@ -6893,6 +7394,13 @@ System special folder path (includes My Documents, My Music, Program Files, Desktop, and more). + + + Renders the directory where NLog is located and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets the system special folder to use. @@ -6924,13 +7432,6 @@ - - - Renders the directory where NLog is located and appends it to the specified . - - The to append the rendered data to. - Logging event. - Format of the ${stacktrace} layout renderer output. @@ -6958,9 +7459,16 @@ - 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 to append the rendered data to. + Logging event. + Gets or sets the output format of the stack trace. @@ -6991,18 +7499,18 @@ - - - Renders the call site and appends it to the specified . - - The to append the rendered data to. - Logging event. - A temporary directory. + + + Renders the directory where NLog is located 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 the directory name. @@ -7015,13 +7523,6 @@ - - - Renders the directory where NLog is located and appends it to the specified . - - The to append the rendered data to. - Logging event. - The identifier of the current thread. @@ -7029,7 +7530,7 @@ - Renders the current thread identifier and appends it to the specified . + Renders the current thread identifier and appends it to the specified . The to append the rendered data to. Logging event. @@ -7041,7 +7542,7 @@ - Renders the current thread name and appends it to the specified . + Renders the current thread name and appends it to the specified . The to append the rendered data to. Logging event. @@ -7053,7 +7554,7 @@ - Renders the ticks value of current time and appends it to the specified . + Renders the ticks value of current time and appends it to the specified . The to append the rendered data to. Logging event. @@ -7063,37 +7564,24 @@ The time in a 24-hour, sortable format HH:mm:ss.mmm. + + + Renders time in the 24-h format (HH:mm:ss.mmm) and appends it to the specified . + + The to append the rendered data to. + Logging event. + Gets or sets a value indicating whether to output UTC time instead of local time. - - - Renders time in the 24-h format (HH:mm:ss.mmm) and appends it to the specified . - - The to append the rendered data to. - Logging event. - Render a NLog variable (xml or config) - - - Gets or sets the name of the NLog variable. - - - - - - Gets or sets the default value to be used when the variable is not set. - - Not used if Name is null - - Initializes the layout renderer. @@ -7108,11 +7596,24 @@ - Renders the specified variable and appends it to the specified . + Renders the specified variable and appends it to the specified . The to append the rendered data to. Logging event. + + + Gets or sets the name of the NLog variable. + + + + + + Gets or sets the default value to be used when the variable is not set. + + Not used if Name is null + + Applies caching to another layout output. @@ -7121,36 +7622,52 @@ The value of the inner layout will be rendered only once and reused subsequently. - + - A value indicating when the cache is cleared. + Base class for s which wrapping other s. + + This has the property (which is default) and can be used to wrap. + + ${uppercase:${level}} //[DefaultParameter] + ${uppercase:Inner=${level}} + - - Never clear the cache. + + + Renders the inner message, processes it and appends it to the specified . + + The to append the rendered data to. + Logging event. - - Clear the cache whenever the is initialized. + + + Transforms the output of another layout. + + Output to be transform. + If the is needed, overwrite . + Transformed text. - - Clear the cache whenever the is closed. + + + Renders the inner layout contents. + + The log event. + Contents of inner layout. + + + + Gets or sets the wrapped layout. + + [DefaultParameter] so Inner: is not required if it's the first + + Initializes a new instance of the class. - - - Gets or sets a value indicating whether this is enabled. - - - - - - Gets or sets a value indicating when the cache is cleared. - - Initializes the layout renderer. @@ -7175,6 +7692,36 @@ The log event. Contents of inner layout. + + + Gets or sets a value indicating whether this is enabled. + + + + + + Gets or sets a value indicating when the cache is cleared. + + + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + + + + A value indicating when the cache is cleared. + + + + Never clear the cache. + + + Clear the cache whenever the is initialized. + + + Clear the cache whenever the is closed. + Filters characters not allowed in the file names by replacing them with safe character. @@ -7182,16 +7729,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - 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 '_'). - - - Post-processes the rendered message. @@ -7199,6 +7739,13 @@ The text to be post-processed. Padded and trimmed string. + + + 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 '_'). + + + Escapes output of another layout using JSON rules. @@ -7206,15 +7753,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets a value indicating whether to apply JSON encoding. - - - Post-processes the rendered message. @@ -7222,6 +7763,12 @@ The text to be post-processed. JSON-encoded string. + + + Gets or sets a value indicating whether to apply JSON encoding. + + + Converts the result of another layout output to lower case. @@ -7229,9 +7776,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Post-processes the rendered message. + + The text to be post-processed. + Padded and trimmed string. + Gets or sets a value indicating whether lower case conversion should be applied. @@ -7245,13 +7799,6 @@ - - - Post-processes the rendered message. - - The text to be post-processed. - Padded and trimmed string. - Only outputs the inner layout when exception has been defined for log message. @@ -7297,9 +7844,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Transforms the output of another layout. + + Output to be transform. + Transformed text. + Gets or sets the number of characters to pad the output to. @@ -7326,19 +7880,12 @@ Gets or sets a value indicating whether a value that has - been truncated (when is true) + been truncated (when is true) will be left-aligned (characters removed from the right) or right-aligned (characters removed from the left). The default is left alignment. - - - Transforms the output of another layout. - - Output to be transform. - Transformed text. - Replaces a string in the output of another layout with another string. @@ -7347,6 +7894,28 @@ ${replace:searchFor=\\n+:replaceWith=-:regex=true:inner=${message}} + + + Initializes the layout renderer. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + A match evaluator for Regular Expression based replacing + + Input string. + Group name in the regex. + Replace value. + Match from regex. + Groups replaced with . + Gets or sets the text to search for. @@ -7390,33 +7959,11 @@ A value of true if whole words should be searched for; otherwise, false. - - - Initializes the layout renderer. - - - - - Post-processes the rendered message. - - The text to be post-processed. - Post-processed text. - This class was created instead of simply using a lambda expression so that the "ThreadAgnosticAttributeTest" will pass - - - A match evaluator for Regular Expression based replacing - - Input string. - Group name in the regex. - Replace value. - Match from regex. - Groups replaced with . - Replaces newline characters from the result of another layout renderer with spaces. @@ -7424,12 +7971,7 @@ - Initializes a new instance of the class. - - - - - Gets or sets a value indicating the string that should be used for separating lines. + Initializes a new instance of the class. @@ -7439,6 +7981,11 @@ The text to be post-processed. String with newline characters replaced with spaces. + + + Gets or sets a value indicating the string that should be used for separating lines. + + Decodes text "encrypted" with ROT-13. @@ -7447,14 +7994,6 @@ See http://en.wikipedia.org/wiki/ROT13. - - - Gets or sets the layout to be wrapped. - - The layout to be wrapped. - This variable is for backwards compatibility - - Encodes/Decodes ROT-13-encoded string. @@ -7469,6 +8008,14 @@ Output to be transform. Transformed text. + + + Gets or sets the layout to be wrapped. + + The layout to be wrapped. + This variable is for backwards compatibility + + Trims the whitespace from the result of another layout renderer. @@ -7476,16 +8023,9 @@ - Initializes a new instance of the class. + 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. - - Post-processes the rendered message. @@ -7493,6 +8033,13 @@ The text to be post-processed. Trimmed string. + + + 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. + + Converts the result of another layout output to upper case. @@ -7505,9 +8052,16 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Post-processes the rendered message. + + The text to be post-processed. + Padded and trimmed string. + Gets or sets a value indicating whether upper case conversion should be applied. @@ -7521,13 +8075,6 @@ - - - Post-processes the rendered message. - - The text to be post-processed. - Padded and trimmed string. - Encodes the result of another layout output for use with URLs. @@ -7535,16 +8082,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - 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. - - Transforms the output of another layout. @@ -7552,17 +8092,18 @@ Output to be transform. Transformed 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. + + Outputs alternative layout when the inner layout produces empty result. - - - Gets or sets the layout to be rendered when original layout produced empty result. - - - Transforms the output of another layout. @@ -7579,17 +8120,17 @@ Contents of inner layout. + + + Gets or sets the layout to be rendered when original layout produced empty result. + + + Only outputs the inner layout when the specified condition has been met. - - - Gets or sets the condition that must be met for the inner layout to be printed. - - - Transforms the output of another layout. @@ -7606,47 +8147,43 @@ Contents of inner layout. - + - Base class for s which wrapping other s. - - This has the property (which is default) and can be used to wrap. + Gets or sets the condition that must be met for the layout to be printed. - - ${uppercase:${level}} //[DefaultParameter] - ${uppercase:Inner=${level}} - + - + - Gets or sets the wrapped layout. - - [DefaultParameter] so Inner: is not required if it's the first + If is not met, print this layout. + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + - - - Renders the inner message, processes it and appends it to the specified . - - The to append the rendered data to. - Logging event. - - - - Transforms the output of another layout. - - Output to be transform. - If the is needed, overwrite . - Transformed text. - - - - Renders the inner layout contents. - - The log event. - Contents of inner layout. - Converts the result of another layout output to be XML-compliant. @@ -7654,15 +8191,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets or sets a value indicating whether to apply XML encoding. - - - Post-processes the rendered message. @@ -7670,241 +8201,17 @@ The text to be post-processed. Padded and trimmed string. - + - A column in the CSV. + Gets or sets a value indicating whether to apply XML encoding. + - + - Initializes a new instance of the class. + A layout containing one or more nested layouts. - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - Initializes a new instance of the class. - - - - - Gets the array of parameters to be passed. - - - - - - Gets or sets a value indicating whether CVS should include header. - - A value of true if CVS should include header; otherwise, false. - - - - - Gets or sets the column delimiter. - - - - - - Gets or sets the quoting mode. - - - - - - Gets or sets the quote Character. - - - - - - Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). - - - - - - Initializes the layout. - - - - - Formats the log event for write. - - The log event to be formatted. - A string representation of the log event. - - - - Header for CSV layout. - - - - - Initializes a new instance of the class. - - The parent. - - - - Renders the layout for the specified logging event by invoking layout renderers. - - The logging event. - The rendered layout. - - - - Specifies CSV quoting modes. - - - - - Quote all column. - - - - - Quote nothing. - - - - - Quote only whose values contain the quote symbol or - the separator. - - - - - JSON attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the attribute. - The layout of the attribute's value. - - - - Initializes a new instance of the class. - - The name of the attribute. - The layout of the attribute's value. - Encode value with json-encode - - - - Gets or sets the name of the attribute. - - - - - Gets or sets the layout that will be rendered as the attribute's value. - - - - - Determines wether or not this attribute will be Json encoded. - - - - - A specialized layout that renders JSON-formatted events. - - - - - Initializes a new instance of the class. - - - - - Gets the array of attributes' configurations. - - - - - - Gets or sets the option to suppress the extra spaces in the output json - - - - - Formats the log event as a JSON document for writing. - - The log event to be formatted. - A JSON string representation of the log event. - Abstract interface that layouts must implement. @@ -7921,24 +8228,9 @@ See and . - - - Gets a value indicating whether this layout is thread-agnostic (can be rendered on any thread). - - - Layout is thread-agnostic if it has been marked with [ThreadAgnostic] attribute and all its children are - like that as well. - Thread-agnostic layouts only use contents of for its output. - - - - - Gets the logging configuration this target is part of. - - - Converts a given text to a . + Converts a given text to a . Text to be converted. object represented by the text. @@ -8018,27 +8310,136 @@ The logging event. The rendered layout. - + - Marks class as a layout renderer and assigns a format string to it. + Gets a value indicating whether this layout is thread-agnostic (can be rendered on any thread). + + + Layout is thread-agnostic if it has been marked with [ThreadAgnostic] attribute and all its children are + like that as well. + Thread-agnostic layouts only use contents of for its output. + + + + + Gets the logging configuration this target is part of. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - Layout name. - + - Parses layout strings. + Initializes the layout. + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + A specialized layout that supports header and footer. + + + Renders the layout for the specified logging event by invoking layout renderers. + + The logging event. + The rendered layout. + Gets or sets the body layout (can be repeated multiple times). @@ -8057,13 +8458,194 @@ - + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event for write. + + The log event to be formatted. + A string representation of the log event. + + + + Get the headers with the column names. + + + + + + Gets the array of parameters to be passed. + + + + + + Gets or sets a value indicating whether CVS should include header. + + A value of true if CVS should include header; otherwise, false. + + + + + Gets or sets the column delimiter. + + + + + + Gets or sets the quoting mode. + + + + + + Gets or sets the quote Character. + + + + + + Gets or sets the custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + + + + + + Header with column names for CSV layout. + + + + + Initializes a new instance of the class. + + The parent. + + Renders the layout for the specified logging event by invoking layout renderers. The logging event. The rendered layout. + + + Specifies CSV quoting modes. + + + + + Quote all column. + + + + + Quote nothing. + + + + + Quote only whose values contain the quote symbol or + the separator. + + + + + JSON attribute. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the attribute. + The layout of the attribute's value. + + + + Initializes a new instance of the class. + + The name of the attribute. + The layout of the attribute's value. + Encode value with json-encode + + + + Gets or sets the name of the attribute. + + + + + Gets or sets the layout that will be rendered as the attribute's value. + + + + + Determines wether or not this attribute will be Json encoded. + + + + + A specialized layout that renders JSON-formatted events. + + + + + Initializes a new instance of the class. + + + + + Formats the log event as a JSON document for writing. + + The log event to be formatted. + A JSON string representation of the log event. + + + + Gets the array of attributes' configurations. + + + + + + Gets or sets the option to suppress the extra spaces in the output json + + + + + Gets or sets the option to render the empty object value {} + + + + + Marks class as a layout renderer and assigns a format string to it. + + + + + Initializes a new instance of the class. + + Layout name. + + + + Parses layout strings. + + A specialized layout that renders Log4j-compatible XML events. @@ -8074,12 +8656,7 @@ - Initializes a new instance of the class. - - - - - Gets the instance that renders log events. + Initializes a new instance of the class. @@ -8089,6 +8666,11 @@ The logging event. The rendered layout. + + + Gets the instance that renders log events. + + Represents a string with embedded placeholders that can render contextual information. @@ -8100,12 +8682,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The layout string to parse. @@ -8116,38 +8698,6 @@ The layout string to parse. The NLog factories to use when creating references to layout renderers. - - - Original text before compile to Layout renderes - - - - - Gets or sets the layout text. - - - - - - Is the message fixed? (no Layout renderers used) - - - - - Get the fixed text. Only set when is true - - - - - Gets a collection of objects that make up this layout. - - - - - Gets the level of stack trace information required for rendering. - - Calculated when setting . - Converts a text to a simple layout. @@ -8181,7 +8731,7 @@ Evaluates the specified text by expanding all layout renderers - in new context. + in new context. The text to be evaluated. The input text with all occurrences of ${} replaced with @@ -8208,6 +8758,38 @@ The logging event. The rendered layout. + + + Original text before compile to Layout renderes + + + + + Gets or sets the layout text. + + + + + + Is the message fixed? (no Layout renderers used) + + + + + Get the fixed text. Only set when is true + + + + + Gets a collection of objects that make up this layout. + + + + + Gets the level of stack trace information required for rendering. + + Calculated when setting . + Represents the logging event. @@ -8220,12 +8802,12 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8233,7 +8815,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8243,7 +8825,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Log level. Logger name. @@ -8252,89 +8834,6 @@ Parameter array. Exception information. - - - Gets the unique identifier of log event which is automatically generated - and monotonously increasing. - - - - - Gets or sets the timestamp of the logging event. - - - - - Gets or sets the level of the logging event. - - - - - Gets a value indicating whether stack trace has been set for this event. - - - - - Gets the stack frame of the method that did the logging. - - - - - Gets the number index of the stack frame that represents the user - code (not the NLog code). - - - - - Gets the entire stack trace. - - - - - Gets or sets the exception information. - - - - - Gets or sets the logger name. - - - - - Gets the logger short name. - - - - - Gets or sets the log message including any parameter placeholders. - - - - - Gets or sets the parameter values or null if no parameters have been specified. - - - - - Gets or sets the format provider that was provided while logging or - when no formatProvider was specified. - - - - - Gets the formatted message. - - - - - Gets the dictionary of per-event context properties. - - - - - Gets the dictionary of per-event context properties. - - Creates the null event. @@ -8424,72 +8923,111 @@ The stack trace. Index of the first user stack frame within the stack trace. + + + Gets the unique identifier of log event which is automatically generated + and monotonously increasing. + + + + + Gets or sets the timestamp of the logging event. + + + + + Gets or sets the level of the logging event. + + + + + Gets a value indicating whether stack trace has been set for this event. + + + + + Gets the stack frame of the method that did the logging. + + + + + Gets the number index of the stack frame that represents the user + code (not the NLog code). + + + + + Gets the entire stack trace. + + + + + Gets or sets the exception information. + + + + + Gets or sets the logger name. + + + + + Gets the logger short name. + + + + + Gets or sets the log message including any parameter placeholders. + + + + + Gets or sets the parameter values or null if no parameters have been specified. + + + + + Gets or sets the format provider that was provided while logging or + when no formatProvider was specified. + + + + + Gets the formatted message. + + + + + Gets the dictionary of per-event context properties. + + + + + Gets the dictionary of per-event context properties. + + Creates and manages instances of objects. - + - Occurs when logging changes. + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The config. - - - Gets the current . - - - - - Gets or sets a value indicating whether exceptions should be thrown. See also . - - A value of true if exception should be thrown; otherwise, false. - By default exceptions are not thrown under any circumstances. - - - - Gets or sets a value indicating whether should be thrown. - - If null then is used. - - A value of true if exception should be thrown; otherwise, false. - - This option is for backwards-compatiblity. - By default exceptions are not thrown under any circumstances. - - - - - - Gets or sets the current logging configuration. After setting this property all - existing loggers will be re-configured, so that there is no need to call - manually. - - - - - Gets or sets the global log threshold. Log events below this threshold are not logged. - - - - - Gets the default culture info to use as . - - - Specific culture info or null to use - - Performs application-defined tasks associated with freeing, releasing, or resetting @@ -8550,7 +9088,7 @@ Gets the specified named logger. Use to pass the type of the needed Logger. Name of the logger. - The type of the logger to create. The type must inherit from . + The type of the logger to create. The type must inherit from . The logger of type . Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. @@ -8621,9 +9159,9 @@ - Returns if logging is currently enabled. + Returns if logging is currently enabled. - A value of 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. @@ -8634,6 +9172,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -8641,6 +9184,78 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. + + + + + Occurs when logging changes. + + + + + Gets the current . + + + + + Gets or sets a value indicating whether exceptions should be thrown. See also . + + A value of true if exception should be thrown; otherwise, false. + By default exceptions are not thrown under any circumstances. + + + + Gets or sets a value indicating whether should be thrown. + + If null then is used. + + A value of true if exception should be thrown; otherwise, false. + + This option is for backwards-compatiblity. + By default exceptions are not thrown under any circumstances. + + + + + + Gets or sets the current logging configuration. After setting this property all + existing loggers will be re-configured, so that there is no need to call + manually. + + + + + Gets or sets the global log threshold. Log events below this threshold are not logged. + + + + + Gets the default culture info to use as . + + + Specific culture info or null to use + + Logger cache key. @@ -8687,7 +9302,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The factory. @@ -8741,21 +9356,6 @@ Initializes a new instance of the class. - - - 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 specified level. @@ -8956,42 +9556,6 @@ Fallback value to return in case of exception. Result returned by the provided function or fallback value in case of exception. - - - 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 . - Writes the diagnostic message at the Trace level using the specified format provider and format parameters. @@ -9051,6 +9615,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -9190,6 +9761,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -9329,6 +9907,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -9468,6 +10053,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -9607,6 +10199,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -9746,6 +10345,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -10436,6 +11042,57 @@ 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. @@ -10487,6 +11144,13 @@ Stackframe with correspending index on the stracktrace + + + New item + + Index of on the stack. + A stackframe + Index of on the stack. @@ -10497,13 +11161,6 @@ A stackframe - - - New item - - Index of on the stack. - A stackframe - Defines available log levels. @@ -10544,16 +11201,6 @@ Off log level. - - - All log levels. (Trace, Debug, Info, Warn, Error, Fatal, Off) - - - - - All log levels that can be used to log events (excludes Off). (Trace, Debug, Info, Warn, Error, Fatal) - - Initializes a new instance of . @@ -10561,16 +11208,6 @@ The log level name. The log level ordinal number. - - - Gets the name of the log level. - - - - - Gets the ordinal of the log level. - - Compares two objects @@ -10689,64 +11326,36 @@ other ordinal. + + + All log levels. (Trace, Debug, Info, Warn, Error, Fatal, Off) + + + + + All log levels that can be used to log events (excludes Off). (Trace, Debug, Info, Warn, Error, Fatal) + + + + + Gets the name of the log level. + + + + + Gets the ordinal of the log level. + + Creates and manages instances of objects. - - - Delegate used to set/get the culture in use. - - Prevents a default instance of the LogManager class from being created. - - - Gets the default instance. - - - - - Occurs when logging changes. - - - - - Gets or sets a value indicating whether NLog should throw exceptions. - By default exceptions are not thrown under any circumstances. - - - - - Gets or sets a value indicating whether should be thrown. - - A value of true if exception should be thrown; otherwise, false. - - This option is for backwards-compatiblity. - 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. - - - - - Gets or sets the default culture to use. - - Gets the logger with the name of the current class. @@ -10766,7 +11375,7 @@ Gets a custom logger with the name of the current class. Use to pass the type of the needed Logger. - The logger class. The class must inherit from . + The logger class. The class must inherit from . The logger of type . This is a slow-running method. Make sure you're not doing this in a loop. @@ -10789,7 +11398,7 @@ Gets the specified named custom logger. Use to pass the type of the needed Logger. Name of the logger. - The logger class. The class must inherit from . + The logger class. The class must inherit from . The logger of type . Multiple calls to GetLogger with the same argument aren't guaranteed to return the same logger reference. The generic way for this method is @@ -10840,7 +11449,7 @@ Checks if logging is currently enabled. - if logging is currently enabled, + if logging is currently enabled, otherwise. Logging is enabled if the number of calls is greater than or equal to calls. @@ -10856,6 +11465,54 @@ namespace but not the assembly. + + + Gets the default instance. + + + + + Occurs when logging changes. + + + + + Gets or sets a value indicating whether NLog should throw exceptions. + By default exceptions are not thrown under any circumstances. + + + + + Gets or sets a value indicating whether should be thrown. + + A value of true if exception should be thrown; otherwise, false. + + This option is for backwards-compatiblity. + 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. + + + + + Gets or sets the default culture to use. + + + + + Delegate used to set/get the culture in use. + + Returns a log message. Used to defer calculation of @@ -10934,36 +11591,6 @@ Client of ILogReceiverServer - - - Occurs when the log message processing has completed. - - - - - Occurs when Open operation has completed. - - - - - Occurs when Close operation has completed. - - - - - Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. - - - - - Gets the underlying implementation. - - - - - Gets the target endpoint for the service to which the WCF client can connect. - - Opens the client asynchronously. @@ -11016,6 +11643,36 @@ The result. + + + Occurs when the log message processing has completed. + + + + + Occurs when Open operation has completed. + + + + + Occurs when Close operation has completed. + + + + + Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. + + + + + Gets the underlying implementation. + + + + + Gets the target endpoint for the service to which the WCF client can connect. + + Gets or sets the cookie container. @@ -11037,6 +11694,14 @@ 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. @@ -11073,19 +11738,28 @@ Gets the collection of indexes into array for each layout value. - - - Converts the to . - - The object this is part of.. - The logger name prefix to prepend in front of the logger name. - Converted . - 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. @@ -11116,23 +11790,6 @@ The events. - - - 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. - - List of strings annotated for more terse serialization. @@ -11151,6 +11808,119 @@ This will be removed when ILogReceiverClient is removed. This provides an implementation of the legacy interface. + + + Abstract base class for the WcfLogReceiverXXXWay classes. It can only be + used internally (see internal constructor). It passes off any Channel usage + to the inheriting class. + + Type of the WCF service. + + + + 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. + + + + + Gets or sets the cookie container. + + The cookie container. + Initializes a new instance of the class. @@ -11222,16 +11992,6 @@ - - - The client getting proxied - - - - - Do we use one-way or two-way messaging? - - Initializes a new instance of the class. @@ -11321,11 +12081,6 @@ IAsyncResult value which can be passed to . - - - Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. - - Causes a communication object to transition from its current state into the closed state. @@ -11349,27 +12104,6 @@ Closes the client asynchronously. - - - Occurs when Close operation has completed. - - - - - Occurs when the communication object completes its transition from the closing state into the closed state. - - - - - Occurs when the communication object first enters the closing state. - - - - - Gets or sets the cookie container. - - The cookie container. - Completes an asynchronous operation to close a communication object. @@ -11382,27 +12116,12 @@ The that is returned by a call to the method.The was unable to be opened and has entered the state.The timeout elapsed before the was able to enter the state and has entered the state. - - - Gets the target endpoint for the service to which the WCF client can connect. - - Ends asynchronous processing of log messages. The result. - - - Occurs when the communication object first enters the faulted state. - - - - - Gets the underlying implementation. - - Causes a communication object to transition from the created state into the opened state. @@ -11426,6 +12145,75 @@ User-specific state. + + + Processes the log messages asynchronously. + + The events to send. + + + + Processes the log messages asynchronously. + + The events to send. + User-specific state. + + + + Causes a communication object to transition from its current state into the closed state. + + + + + The client getting proxied + + + + + Do we use one-way or two-way messaging? + + + + + Enables the user to configure client and service credentials as well as service credential authentication settings for use on the client side of communication. + + + + + Occurs when Close operation has completed. + + + + + Occurs when the communication object completes its transition from the closing state into the closed state. + + + + + Occurs when the communication object first enters the closing state. + + + + + Gets or sets the cookie container. + + The cookie container. + + + + Gets the target endpoint for the service to which the WCF client can connect. + + + + + Occurs when the communication object first enters the faulted state. + + + + + Gets the underlying implementation. + + Occurs when Open operation has completed. @@ -11441,19 +12229,6 @@ Occurs when the communication object first enters the opening state. - - - Processes the log messages asynchronously. - - The events to send. - - - - Processes the log messages asynchronously. - - The events to send. - User-specific state. - Occurs when the log message processing has completed. @@ -11467,124 +12242,6 @@ The value of the of the object. - - - Causes a communication object to transition from its current state into the closed state. - - - - - Abstract base class for the WcfLogReceiverXXXWay classes. It can only be - used internally (see internal constructor). It passes off any Channel usage - to the inheriting class. - - Type of the WCF service. - - - - 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. - - - - Occurs when the log message processing has completed. - - - - - Occurs when Open operation has completed. - - - - - Occurs when Close operation has completed. - - - - - Gets or sets the cookie container. - - The cookie container. - - - - 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. - Log Receiver Client using WCF. @@ -11756,6 +12413,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -11824,18 +12487,6 @@ Nested Diagnostics Context - for log4net compatibility. - - - Gets the top NDC message but doesn't remove it. - - The top message. . - - - - Gets the top NDC object but doesn't remove it. - - The object from the top of the NDC stack, if defined; otherwise null. - Pushes the specified text on current thread NDC. @@ -11872,6 +12523,18 @@ Array of objects on the stack. + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Gets the top NDC object but doesn't remove it. + + The object from the top of the NDC stack, if defined; otherwise null. + Nested Diagnostics Context - a thread-local structure that keeps a stack @@ -11879,18 +12542,6 @@ Mostly for compatibility with log4net. - - - Gets the top NDC message but doesn't remove it. - - The top message. . - - - - Gets the top NDC object but doesn't remove it. - - The object at the top of the NDC stack if defined; otherwise null. - Pushes the specified text on current thread NDC. @@ -11948,6 +12599,18 @@ Array of objects on the stack. + + + Gets the top NDC message but doesn't remove it. + + The top message. . + + + + Gets the top NDC object but doesn't remove it. + + The object at the top of the NDC stack if defined; otherwise null. + Resets the stack to the original count during . @@ -11955,7 +12618,7 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The stack. The previous count. @@ -11972,25 +12635,25 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. Parameters for the message - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -12002,25 +12665,25 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. - Initializes a new instance of the class. + Initializes a new instance of the class. The message. Parameters for the message - Initializes a new instance of the class. + Initializes a new instance of the class. The message. The inner exception. @@ -12080,22 +12743,17 @@

- + - Initializes a new instance of the class. + Sends log messages to the remote instance of NLog Viewer. - - - - Writes log messages to the console. - - 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. @@ -12103,1410 +12761,15 @@

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. +

- - - Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output. - - - - - - Initializes the target. - - - - - Closes the target and releases any unmanaged resources. - - - - - 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. - - - - - Write to output - - text to be written. - - - - A descriptor for an archive created with the DateAndSequence numbering mode. - - - - - The full name of the archive file. - - - - - The parsed date contained in the file name. - - - - - The parsed sequence number contained in the file name. - - - - - Determines whether produces the same string as the current instance's date once formatted with the current instance's date format. - - The date to compare the current object's date to. - True if the formatted dates are equal, otherwise False. - - - - Initializes a new instance of the class. - - - - - Writes log messages to the attached managed debugger. - - -

- 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 the target. - - - - - Closes the target and releases any unmanaged resources. - - - - - Writes the specified logging event to the attached debugger. - - The logging event. - - - - Mock target - useful for testing. - - 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. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets the number of times this target has been called. - - - - - - Gets the last message rendered by this target. - - - - - - Increases the number of messages. - - The logging event. - - - - Modes of archiving files based on time. - - - - - Don't archive based on time. - - - - - AddToArchive every year. - - - - - AddToArchive every month. - - - - - AddToArchive daily. - - - - - AddToArchive every hour. - - - - - AddToArchive every minute. - - - - - Writes log messages to one or more files. - - Documentation on NLog Wiki - - - - Default clean up period of the initilized files. When a file exceeds the clean up period is removed from the list. - - Clean up period is defined in days. - - - - The maximum number of initialised files at any one time. Once this number is exceeded clean up procedures - are initiated to reduce the number of initialised files. - - - - - This value disables file archiving based on the size. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - - - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. - - Last write time is store in local time (no UTC). - - - - Factory used to create the file appenders in the instance. - - File appenders are stored in an instance of . - - - - List of the associated file appenders with the instance. - - - - - The number of initialised files at any one time. - - - - - The maximum number of archive files that should be kept. - - - - - It holds the file names of existing archives in order for the oldest archives to be removed when the list of - filenames becomes too long. - - - - - The filename as target - - - - - The archive file name as target - - - - - The filename if is a fixed string - - - - - The date of the previous log event. - - - - - The file name of the previous log event. - - - - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets the name of the file to write to. - - - 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. - - - - - - Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. - If set to false, nothing gets written when the filename is wrong. - - - - - Gets or sets a value indicating whether to create directories if they do not 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. - - - - - - Gets or sets a value indicating whether to delete old log file on startup. - - - 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. - - - - - - 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. - - - - - - Gets or sets the maximum number of log filenames that should be stored as existing. - - - The bigger this number is the longer it will take to write each log record. The smaller the number is - the higher the chance that the clean function will be run when no new files have been opened. - - - - - - Gets or sets a value indicating whether to enable log file(s) to be deleted. - - - - - - Gets or sets the line ending mode. - - - - - - Gets or sets a value indicating whether to automatically flush the file buffers after each 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 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 log file buffer size in bytes. - - - - - - Gets or sets the file encoding. - - - - - - 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. - - - - - - Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. - - - This effectively prevents files from being kept open. - - - - - - 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. - - - 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 archive old log file on startup. - - - This option works only when the "FileName" parameter denotes a single file. - After archiving the old file, the current log file will be empty. - - -
- - - Gets or sets a value specifying the date format to use when archiving files. - - - This option works only when the "ArchiveNumbering" parameter is set either to Date or DateAndSequence. - - - - - - Gets or sets the size in bytes above which log files will be automatically archived. - - Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. - Choose: - - - 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 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 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 or sets the maximum number of archive files that should be kept. - - - - - - Gets or sets the way file archives are numbered. - - - - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - - - - - Gets the characters that are appended after each line. - - - - - Refresh the ArchiveFilePatternToWatch option of the . - The log file must be watched for archiving when multiple processes are writing to the same - open file. - - - - - 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. - - - - - Returns the suitable appender factory ( ) to be used to generate the file - appenders associated with the instance. - - The type of the file appender factory returned depends on the values of various properties. - - suitable for this instance. - - - - Initializes file logging by creating data structures that - enable efficient multi-file logging. - - - - - Closes the file(s) opened for writing. - - - - - Writes the specified logging event to a file specified in the FileName - parameter. - - The logging event. - - - - 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. - - - - - Formats the log event for write. - - The log event to be formatted. - A string representation of the log event. - - - - Gets the bytes to be written to the file. - - Log event. - Array of bytes that are ready to be written. - - - - 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. - - - - Replaces the numeric pattern i.e. {#} in a file name with the parameter value. - - File name which contains the numeric pattern. - Value which will replace the numeric pattern. - File name with the value of in the position of the numeric pattern. - - - - Determines if the file name as contains a numeric pattern i.e. {#} in it. - - Example: - trace{#}.log Contains the numeric pattern. - trace{###}.log Contains the numeric pattern. - trace{#X#}.log Contains the numeric pattern (See remarks). - trace.log Does not contain the pattern. - - Occasionally, this method can identify the existence of the {#} pattern incorrectly. - File name to be checked. - when the pattern is found; otherwise. - - - - Archives the using a rolling style numbering (the most recent is always #0 then - #1, ..., #N. When the number of archive files exceed the obsolete archives - are deleted. - - - This method is called recursively. This is the reason the is required. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Value which will replace the numeric pattern. - - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - - - - Archives the using a sequence style numbering. The most recent archive has the - highest number. When the number of archive files exceed the obsolete - archives are deleted. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - - - - Archives fileName to archiveFileName. - - File name to be archived. - Name of the archive file. - - - - - Archives the using a date and sequence style numbering. Archives will be stamped - with the prior period (Year, Month, Day) datetime. The most recent archive has the highest number (in - combination with the date). - - - When the number of archive files exceed the obsolete archives are deleted. - - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Log event that the instance is currently processing. - - - - Deletes files among a given list, and stops as soon as the remaining files are fewer than the setting. - - List of the file archives. - - Items are deleted in the same order as in . No file is deleted if property is zero. - - - - - Searches a given directory for archives that comply with the current archive pattern. - - An enumeration of archive infos, ordered by their file creation date. - - - - Gets the collection of files in the specified directory which they match the . - - Directory to searched. - Pattern which the files will be searched against. - List of files matching the pattern. - - - - Replaces the string-based pattern i.e. {#} in a file name with the value passed in parameter. - - File name which contains the string-based pattern. - Value which will replace the string-based pattern. - - File name with the value of in the position of the string-based pattern. - - - - - Archives the using a date style numbering. Archives will be stamped with the - prior period (Year, Month, Day, Hour, Minute) datetime. When the number of archive files exceed the obsolete archives are deleted. - - File name to be archived. - File name template which contains the numeric pattern to be replaced. - Log event that the instance is currently processing. - - - - Deletes archive files in reverse chronological order until only the - MaxArchiveFiles number of archive files remain. - - The pattern that archive filenames will match - - - - Gets the correct formatting to be used based on the value of for converting values which will be inserting into file - names during archiving. - - This value will be computed only when a empty value or is passed into - - Date format to used irrespectively of value. - Formatting for dates. - - - - Invokes the archiving process after determining when and which type of archiving is required. - - File name to be checked and archived. - Log event that the instance is currently processing. - - - - Gets the pattern that archive files will match - - Filename of the log file - Log event that the instance is currently processing. - A string with a pattern that will match the archive filenames - - - - Determine if old archive files should be deleted. - - when old archives should be deleted; otherwise. - - - - Indicates if the automatic archiving process should be executed. - - File name to be written. - Log event that the instance is currently processing. - The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. - - - - Indicates if the automatic archiving process should be executed based on file size constrains. - - File name to be written. - The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. - - - - Indicates if the automatic archiving process should be executed based on date/time constrains. - - File name to be written. - Log event that the instance is currently processing. - when archiving should be executed; otherwise. - - - - The sequence of to be written for the file header. - - Sequence of to be written. - - - - The sequence of to be written for the file footer. - - Sequence of to be written. - - - - Evaluates which parts of a file should be written (header, content, footer) based on various properties of - instance and writes them. - - File name to be written. - Log event that the instance is currently processing. - Raw sequence of to be written into the content part of the file. - Indicates that only content section should be written in the file. - - - - Initialise a file to be used by the instance. Based on the number of initialised - files and the values of various instance properties clean up and/or archiving processes can be invoked. - - File name to be written. - Log event that the instance is currently processing. - Indicates that only content section should be written in the file. - when file header should be written; otherwise. - - - - Writes the file footer and uninitialises the file in instance internal structures. - - File name to close. - - - - Writes the footer information to a file. - - The file path to write to. - - - - Invokes the archiving and clean up of older archive file based on the values of and properties respectively. - - File name to be written. - Log event that the instance is currently processing. - - - - Creates the file specified in and writes the file content in each entirety i.e. - Header, Content and Footer. - - The name of the file to be written. - Sequence of to be written in the content section of the file. - This method is used when the content of the log file is re-written on every write. - - - - Writes the header information to a file. - - File appender associated with the file. - - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - - - - The sequence of to be written in a file after applying any formating and any - transformations required from the . - - The layout used to render output message. - Sequence of to be written. - Usually it is used to render the header and hooter of the files. - - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - - - - Creates an instance of class. - - The file target instance whose files to archive. - Maximum number of archive files to be kept. - - - - Gets or sets the maximum number of archive files that should be kept. - - - - - Adds the files in the specified path to the archive file queue. - - The folder where the archive files are stored. - - - - Adds a file into archive. - - File name of the archive - Original file name - Create a directory, if it does not exist - if the file has been moved successfully; otherwise. - - - - Archives the file, either by copying it to a new file system location or by compressing it, and add the file name into the list of archives. - - Target file name. - Original file name. - Create a directory, if it does not exist. - - - - Remove old archive files when the files on the queue are more than the . - - - - - Gets the file name for the next archive file by appending a number to the provided - "base"-filename. - - Example: - Original Filename trace.log - Target Filename trace.15.log - - Original file name. - File name suitable for archiving - - - - Characters determining the start of the . - - - - - Characters determining the end of the . - - - - - File name which is used as template for matching and replacements. - It is expected to contain a pattern to match. - - - - - The begging position of the - within the . -1 is returned - when no pattern can be found. - - - - - The ending position of the - within the . -1 is returned - when no pattern can be found. - - - - - Replace the pattern with the specified String. - - - - - - - Line ending mode. - - - - - Insert platform-dependent end-of-line sequence after each line. - - - - - Insert CR LF sequence (ASCII 13, ASCII 10) after each line. - - - - - Insert CR character (ASCII 13) after each line. - - - - - Insert LF character (ASCII 10) after each line. - - - - - Do not insert any line ending. - - - - - Gets the name of the LineEndingMode instance. - - - - - Gets the new line characters (value) of the LineEndingMode instance. - - - - - Initializes a new instance of . - - The mode name. - The new line characters to be used. - - - - Returns the that corresponds to the supplied . - - - The textual representation of the line ending mode, such as CRLF, LF, Default etc. - Name is not case sensitive. - - The value, that corresponds to the . - There is no line ending mode with the specified name. - - - - 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 mode1.NewLineCharacters == mode2.NewLineCharacters. - - - - Compares two objects and returns a - value indicating whether the first one is not equal to the second one. - - The first mode - The second mode - The value of mode1.NewLineCharacters != mode2.NewLineCharacters. - - - - 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. - - - - - Provides a type converter to convert objects to and from other representations. - - - - - Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. - - - true if this converter can perform the conversion; otherwise, false. - - An that provides a format context. A that represents the type you want to convert from. - - - - Converts the given object to the type of this converter, using the specified context and culture information. - - - An that represents the converted value. - - An that provides a format context. The to use as the current culture. The to convert. The conversion cannot be performed. - - - - Sends log messages to a NLog Receiver Service (using WCF or Web Services). - - Documentation on NLog Wiki - - - - Initializes a new instance of the class. - - - - - Gets or sets the endpoint address. - - The endpoint address. - - - - - Gets or sets the name of the endpoint configuration in WCF configuration file. - - The name of the endpoint configuration. - - - - - Gets or sets a value indicating whether to use binary message encoding. - - - - - - Gets or sets a value indicating whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply) - - - - - - Gets or sets the client ID. - - The client ID. - - - - - Gets the list of parameters. - - The parameters. - - - - - Gets or sets a value indicating whether to include per-event properties in the payload sent to the server. - - - - - - Called when log events are being sent (test hook). - - The events. - The async continuations. - True if events should be sent, false to stop processing them. - - - - Writes logging event to the log target. Must be overridden in inheriting - classes. - - 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. - - Logging events to be written out. - - - - Flush any pending log messages asynchronously (in case of asynchronous targets). - - The asynchronous continuation. - - - - Creating a new instance of WcfLogReceiverClient - - Inheritors can override this method and provide their own - service configuration - binding and endpoint address - - - - - - Creating a new instance of IWcfLogReceiverClient - - Inheritors can override this method and provide their own - service configuration - binding and endpoint address - - - virtual is used by endusers - - - - 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: -

- -
-
- - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets the list of logs gathered in the . - - - - - Renders the logging event message and adds it to the internal ArrayList of log messages. - - The logging event. - - - - A parameter to MethodCall. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The layout to use for parameter value. - - - - Initializes a new instance of the class. - - Name of the parameter. - The layout. - - - - Initializes a new instance of the class. - - The name of the parameter. - The layout. - The type of the parameter. - - - - Gets or sets the name of the parameter. - - - - - - Gets or sets the type of the parameter. - - - - - - Gets or sets the layout that should be use to calculate the value for the parameter. - - - - - - Calls the specified static method on each log message and passes contextual parameters to it. - - 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 class name. - - - - - - Gets or sets the method name. The method must be public and static. - - Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx - e.g. - - - - - - Initializes the target. - - - - - Calls the specified Method. - - Method parameters. - - - - The base class for all targets which call methods (local or remote). - Manages parameters and type coercion. - - - - - Initializes a new instance of the class. - - - - - Gets the array of parameters to be passed. - - - - - - Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). - - - The logging event. - - - - - Calls the target method. Must be implemented in concrete classes. - - Method call parameters. - The continuation. - - - - Calls the target method. Must be implemented in concrete classes. - - Method call parameters. - Sends log messages over the network. @@ -13546,333 +12809,16 @@

- + - Initializes a new instance of the class. + Represents target that supports string formatting using layouts. - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets the network address. - - - The network address can be: -
    -
  • tcp://host:port - TCP (auto select IPv4/IPv6) (not supported on Windows Phone 7.0)
  • -
  • tcp4://host:port - force TCP/IPv4 (not supported on Windows Phone 7.0)
  • -
  • tcp6://host:port - force TCP/IPv6 (not supported on Windows Phone 7.0)
  • -
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight and on Windows Phone 7.0)
  • -
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight and on Windows Phone 7.0)
  • -
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight and on Windows Phone 7.0)
  • -
  • http://host:port/pageName - HTTP using POST verb
  • -
  • https://host:port/pageName - HTTPS using POST verb
  • -
- For SOAP-based webservice support over HTTP use WebService target. -
- -
- - - Gets or sets a value indicating whether to keep connection open whenever possible. - - - - - - Gets or sets a value indicating whether to append newline at the end of log message. - - - - - - Gets or sets the maximum message size in bytes. - - - - - - Gets or sets the size of the connection cache (number of connections which are kept alive). - - - - - - Gets or sets the maximum current connections. 0 = no maximum. - - - - - - Gets or sets the action that should be taken if the will be more connections than . - - - - - - Gets or sets the maximum queue size. - - - - - Gets or sets the action that should be taken if the message is larger than - maxMessageSize. - - - - - - Gets or sets the encoding to be used. - - - - - - Flush any pending log messages asynchronously (in case of asynchronous targets). - - The asynchronous continuation. - - - - Closes the target. - - - - - Sends the - rendered logging event over the network optionally concatenating it with a newline character. - - The logging event. - - - - Try to remove. - - - - - removed something? - - - - Gets the bytes to be written. - - Log event. - Byte array. - - - - The action to be taken when there are more connections then the max. - - - - - Just allow it. - - - - - Discard the connection item. - - - - - Block until there's more room in the queue. - - - - - Action that should be taken if the message overflows. - - - - - Report an error. - - - - - Split the message into smaller pieces. - - - - - Discard the entire message. - - - - - Represents a parameter to a NLogViewer target. - - - - - Initializes a new instance of the class. - - - - - Gets or sets viewer parameter name. - - - - - - Gets or sets the layout that should be use to calcuate the value for the parameter. - - - - - - 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. -

-
-
- - - Initializes a new instance of the class. - - - The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} - - - - - Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. - - - - - - Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. - - - - - - 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 dictionary contents. - - - - - - Gets or sets a value indicating whether to include stack contents. - - - - - - Gets or sets the NDC item separator. - - - - - - Gets the collection of parameters. Each parameter contains a mapping - between NLog layout and a named parameter. - - - - - - Gets the layout renderer which produces Log4j-compatible XML events. - - - - - Gets or sets the instance of that is used to format log messages. - - - - - - Discards log messages. Used mainly for debugging and benchmarking. - - 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 to perform layout calculation. - - - - - - Does nothing. Optionally it calculates the layout text but - discards the results. - - The logging event. Represents logging target. - - - 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. - - Get all used layouts in this target. @@ -13980,6 +12926,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -13988,6 +12940,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -13995,36 +12953,30 @@ The event info object to perform the merge to. - + - Marks class as a logging target and assigns a name to it. + Gets or sets the name of the target. - This attribute is not required when registering the target in the API. + - + - Initializes a new instance of the class. - - Name of the target. - - - - Gets or sets a value indicating whether to the target is a wrapper target (used to generate the target summary documentation page). + Gets the object which can be used to synchronize asynchronous operations that must rely on the . - + - Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page). + Gets the logging configuration this target is part of. - + - Represents target that supports string formatting using layouts. + Gets a value indicating whether the target has been initialized. - 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} @@ -14036,6 +12988,240 @@
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Flush any pending log messages asynchronously (in case of asynchronous targets). + + The asynchronous continuation. + + + + Closes the target. + + + + + Sends the + rendered logging event over the network optionally concatenating it with a newline character. + + The logging event. + + + + Try to remove. + + + + + removed something? + + + + Gets the bytes to be written. + + Log event. + Byte array. + + + + Gets or sets the network address. + + + The network address can be: +
    +
  • tcp://host:port - TCP (auto select IPv4/IPv6) (not supported on Windows Phone 7.0)
  • +
  • tcp4://host:port - force TCP/IPv4 (not supported on Windows Phone 7.0)
  • +
  • tcp6://host:port - force TCP/IPv6 (not supported on Windows Phone 7.0)
  • +
  • udp://host:port - UDP (auto select IPv4/IPv6, not supported on Silverlight and on Windows Phone 7.0)
  • +
  • udp4://host:port - force UDP/IPv4 (not supported on Silverlight and on Windows Phone 7.0)
  • +
  • udp6://host:port - force UDP/IPv6 (not supported on Silverlight and on Windows Phone 7.0)
  • +
  • http://host:port/pageName - HTTP using POST verb
  • +
  • https://host:port/pageName - HTTPS using POST verb
  • +
+ For SOAP-based webservice support over HTTP use WebService target. +
+ +
+ + + Gets or sets a value indicating whether to keep connection open whenever possible. + + + + + + Gets or sets a value indicating whether to append newline at the end of log message. + + + + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + + + + Gets or sets the maximum message size in bytes. + + + + + + Gets or sets the size of the connection cache (number of connections which are kept alive). + + + + + + Gets or sets the maximum current connections. 0 = no maximum. + + + + + + Gets or sets the action that should be taken if the will be more connections than . + + + + + + Gets or sets the maximum queue size. + + + + + Gets or sets the action that should be taken if the message is larger than + maxMessageSize. + + + + + + Gets or sets the encoding to be used. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. + + + + + + Gets or sets the AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + + 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 dictionary contents. + + + + + + Gets or sets a value indicating whether to include stack contents. + + + + + + Gets or sets the NDC item separator. + + + + + + Gets the collection of parameters. Each parameter contains a mapping + between NLog layout and a named parameter. + + + + + + Gets the layout renderer which produces Log4j-compatible XML events. + + + + + Gets or sets the instance of that is used to format log messages. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with a name. + + Name of the target. + + + + Writes log messages to the console. + + 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: +

+ +
+
Represents target that supports string formatting using layouts. @@ -14043,7 +13229,7 @@ - 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} @@ -14073,6 +13259,1705 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Initializes the target. + + + + + Closes the target and releases any unmanaged resources. + + + + + 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. + + + + + Write to output + + text to be written. + + + + Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output. + + + + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + A descriptor for an archive created with the DateAndSequence numbering mode. + + + + + Determines whether produces the same string as the current instance's date once formatted with the current instance's date format. + + The date to compare the current object's date to. + True if the formatted dates are equal, otherwise False. + + + + Initializes a new instance of the class. + + + + + The full name of the archive file. + + + + + The parsed date contained in the file name. + + + + + The parsed sequence number contained in the file name. + + + + + Writes log messages to the attached managed debugger. + + +

+ 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Initializes the target. + + + + + Closes the target and releases any unmanaged resources. + + + + + Writes the specified logging event to the attached debugger. + + The logging event. + + + + Mock target - useful for testing. + + 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + 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. + + + + + + Modes of archiving files based on time. + + + + + Don't archive based on time. + + + + + AddToArchive every year. + + + + + AddToArchive every month. + + + + + AddToArchive daily. + + + + + AddToArchive every hour. + + + + + AddToArchive every minute. + + + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + + + + Writes log messages to one or more files. + + Documentation on NLog Wiki + + + + Default clean up period of the initilized files. When a file exceeds the clean up period is removed from the list. + + Clean up period is defined in days. + + + + The maximum number of initialised files at any one time. Once this number is exceeded clean up procedures + are initiated to reduce the number of initialised files. + + + + + This value disables file archiving based on the size. + + + + + Holds the initialised files each given time by the instance. Against each file, the last write time is stored. + + Last write time is store in local time (no UTC). + + + + Factory used to create the file appenders in the instance. + + File appenders are stored in an instance of . + + + + List of the associated file appenders with the instance. + + + + + The number of initialised files at any one time. + + + + + The maximum number of archive files that should be kept. + + + + + It holds the file names of existing archives in order for the oldest archives to be removed when the list of + filenames becomes too long. + + + + + The filename as target + + + + + The archive file name as target + + + + + The date of the previous log event. + + + + + The file name of the previous log event. + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Refresh the ArchiveFilePatternToWatch option of the . + The log file must be watched for archiving when multiple processes are writing to the same + open file. + + + + + 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. + + + + + Returns the suitable appender factory ( ) to be used to generate the file + appenders associated with the instance. + + The type of the file appender factory returned depends on the values of various properties. + + suitable for this instance. + + + + Initializes file logging by creating data structures that + enable efficient multi-file logging. + + + + + Closes the file(s) opened for writing. + + + + + Writes the specified logging event to a file specified in the FileName + parameter. + + The logging event. + + + + Get full filename (=absolute) and cleaned if needed. + + + + + + + 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. + + + + + Formats the log event for write. + + The log event to be formatted. + A string representation of the log event. + + + + Gets the bytes to be written to the file. + + Log event. + Array of bytes that are ready to be written. + + + + 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. + + + + Replaces the numeric pattern i.e. {#} in a file name with the parameter value. + + File name which contains the numeric pattern. + Value which will replace the numeric pattern. + File name with the value of in the position of the numeric pattern. + + + + Determines if the file name as contains a numeric pattern i.e. {#} in it. + + Example: + trace{#}.log Contains the numeric pattern. + trace{###}.log Contains the numeric pattern. + trace{#X#}.log Contains the numeric pattern (See remarks). + trace.log Does not contain the pattern. + + Occasionally, this method can identify the existence of the {#} pattern incorrectly. + File name to be checked. + when the pattern is found; otherwise. + + + + Archives the using a rolling style numbering (the most recent is always #0 then + #1, ..., #N. When the number of archive files exceed the obsolete archives + are deleted. + + + This method is called recursively. This is the reason the is required. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Value which will replace the numeric pattern. + + + + Archives the using a sequence style numbering. The most recent archive has the + highest number. When the number of archive files exceed the obsolete + archives are deleted. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + + + + Archives fileName to archiveFileName. + + File name to be archived. + Name of the archive file. + + + + + Archives the using a date and sequence style numbering. Archives will be stamped + with the prior period (Year, Month, Day) datetime. The most recent archive has the highest number (in + combination with the date). + + + When the number of archive files exceed the obsolete archives are deleted. + + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Log event that the instance is currently processing. + + + + Deletes files among a given list, and stops as soon as the remaining files are fewer than the setting. + + List of the file archives. + + Items are deleted in the same order as in . No file is deleted if property is zero. + + + + + Searches a given directory for archives that comply with the current archive pattern. + + An enumeration of archive infos, ordered by their file creation date. + + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + + + + Gets the collection of files in the specified directory which they match the . + + Directory to searched. + Pattern which the files will be searched against. + List of files matching the pattern. + + + + Replaces the string-based pattern i.e. {#} in a file name with the value passed in parameter. + + File name which contains the string-based pattern. + Value which will replace the string-based pattern. + + File name with the value of in the position of the string-based pattern. + + + + + Archives the using a date style numbering. Archives will be stamped with the + prior period (Year, Month, Day, Hour, Minute) datetime. When the number of archive files exceed the obsolete archives are deleted. + + File name to be archived. + File name template which contains the numeric pattern to be replaced. + Log event that the instance is currently processing. + + + + Deletes archive files in reverse chronological order until only the + MaxArchiveFiles number of archive files remain. + + The pattern that archive filenames will match + + + + Gets the correct formatting to be used based on the value of for converting values which will be inserting into file + names during archiving. + + This value will be computed only when a empty value or is passed into + + Date format to used irrespectively of value. + Formatting for dates. + + + + Invokes the archiving process after determining when and which type of archiving is required. + + File name to be checked and archived. + Log event that the instance is currently processing. + + + + Gets the pattern that archive files will match + + Filename of the log file + Log event that the instance is currently processing. + A string with a pattern that will match the archive filenames + + + + Determine if old archive files should be deleted. + + when old archives should be deleted; otherwise. + + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + + + Indicates if the automatic archiving process should be executed. + + File name to be written. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + Filename to archive. If null, then nothing to archive. + + + + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. + + File name to be written. + The size in bytes of the next chunk of data to be written in the file. + Filename to archive. If null, then nothing to archive. + + + + Returns the file name for archiving, or null if archiving should not occur based on date/time. + + File name to be written. + Log event that the instance is currently processing. + Filename to archive. If null, then nothing to archive. + + + + The sequence of to be written for the file header. + + Sequence of to be written. + + + + The sequence of to be written for the file footer. + + Sequence of to be written. + + + + Evaluates which parts of a file should be written (header, content, footer) based on various properties of + instance and writes them. + + File name to be written. + Log event that the instance is currently processing. + Raw sequence of to be written into the content part of the file. + Indicates that only content section should be written in the file. + + + + Initialise a file to be used by the instance. Based on the number of initialised + files and the values of various instance properties clean up and/or archiving processes can be invoked. + + File name to be written. + Log event that the instance is currently processing. + Indicates that only content section should be written in the file. + when file header should be written; otherwise. + + + + Writes the file footer and finalizes the file in instance internal structures. + + File name to close. + Indicates if the file is being finalized for archiving. + + + + Writes the footer information to a file. + + The file path to write to. + + + + Invokes the archiving and clean up of older archive file based on the values of and properties respectively. + + File name to be written. + Log event that the instance is currently processing. + + + + Creates the file specified in and writes the file content in each entirety i.e. + Header, Content and Footer. + + The name of the file to be written. + Sequence of to be written in the content section of the file. + First attempt to write? + This method is used when the content of the log file is re-written on every write. + + + + Writes the header information to a file. + + File appender associated with the file. + + + + The sequence of to be written in a file after applying any formating and any + transformations required from the . + + The layout used to render output message. + Sequence of to be written. + Usually it is used to render the header and hooter of the files. + + + + Gets or sets the name of the file to write to. + + + 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. + + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. + If set to false, nothing gets written when the filename is wrong. + + + + + Is the an absolute or relative path? + + + + + Gets or sets a value indicating whether to create directories if they do not 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. + + + + + + Gets or sets a value indicating whether to delete old log file on startup. + + + 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. + + + + + + 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. + + + + + + Gets or sets the maximum number of log filenames that should be stored as existing. + + + The bigger this number is the longer it will take to write each log record. The smaller the number is + the higher the chance that the clean function will be run when no new files have been opened. + + + + + + Gets or sets a value indicating whether to enable log file(s) to be deleted. + + + + + + Should we capture the last write time of a file? + + + + + Gets or sets the line ending mode. + + + + + + Gets or sets a value indicating whether to automatically flush the file buffers after each 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 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 log file buffer size in bytes. + + + + + + Gets or sets the file encoding. + + + + + + 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. + + + + + + Gets or sets a value indicating whether concurrent writes to the log file by multiple processes on different network hosts. + + + This effectively prevents files from being kept open. + + + + + + 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. + + + 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 archive old log file on startup. + + + This option works only when the "FileName" parameter denotes a single file. + After archiving the old file, the current log file will be empty. + + +
+ + + Gets or sets a value specifying the date format to use when archiving files. + + + This option works only when the "ArchiveNumbering" parameter is set either to Date or DateAndSequence. + + + + + + Gets or sets the size in bytes above which log files will be automatically archived. + + Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. + Choose: + + + 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 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. +

+
+ +
+ + + Is the an absolute or relative path? + + + + + 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 or sets the maximum number of archive files that should be kept. + + + + + + Gets or sets the way file archives are numbered. + + + + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + + + + Gets the characters that are appended after each line. + + + + + Creates an instance of class. + + The file target instance whose files to archive. + Maximum number of archive files to be kept. + + + + Adds the files in the specified path to the archive file queue. + + The folder where the archive files are stored. + + + + Adds a file into archive. + + File name of the archive + Original file name + Create a directory, if it does not exist + if the file has been moved successfully; otherwise. + + + + Archives the file, either by copying it to a new file system location or by compressing it, and add the file name into the list of archives. + + Target file name. + Original file name. + Create a directory, if it does not exist. + + + + Remove old archive files when the files on the queue are more than the . + + + + + Gets the file name for the next archive file by appending a number to the provided + "base"-filename. + + Example: + Original Filename trace.log + Target Filename trace.15.log + + Original file name. + File name suitable for archiving + + + + Gets or sets the maximum number of archive files that should be kept. + + + + + Characters determining the start of the . + + + + + Characters determining the end of the . + + + + + Replace the pattern with the specified String. + + + + + + + File name which is used as template for matching and replacements. + It is expected to contain a pattern to match. + + + + + The begging position of the + within the . -1 is returned + when no pattern can be found. + + + + + The ending position of the + within the . -1 is returned + when no pattern can be found. + + + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + + + + Line ending mode. + + + + + Insert platform-dependent end-of-line sequence after each line. + + + + + Insert CR LF sequence (ASCII 13, ASCII 10) after each line. + + + + + Insert CR character (ASCII 13) after each line. + + + + + Insert LF character (ASCII 10) after each line. + + + + + Do not insert any line ending. + + + + + Initializes a new instance of . + + The mode name. + The new line characters to be used. + + + + Returns the that corresponds to the supplied . + + + The textual representation of the line ending mode, such as CRLF, LF, Default etc. + Name is not case sensitive. + + The value, that corresponds to the . + There is no line ending mode with the specified name. + + + + 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 mode1.NewLineCharacters == mode2.NewLineCharacters. + + + + Compares two objects and returns a + value indicating whether the first one is not equal to the second one. + + The first mode + The second mode + The value of mode1.NewLineCharacters != mode2.NewLineCharacters. + + + + 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. + + + + + Gets the name of the LineEndingMode instance. + + + + + Gets the new line characters (value) of the LineEndingMode instance. + + + + + Provides a type converter to convert objects to and from other representations. + + + + + Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context. + + + true if this converter can perform the conversion; otherwise, false. + + An that provides a format context. A that represents the type you want to convert from. + + + + Converts the given object to the type of this converter, using the specified context and culture information. + + + An that represents the converted value. + + An that provides a format context. The to use as the current culture. The to convert. The conversion cannot be performed. + + + + Sends log messages to a NLog Receiver Service (using WCF or Web Services). + + Documentation on NLog Wiki + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + + + + Called when log events are being sent (test hook). + + The events. + The async continuations. + True if events should be sent, false to stop processing them. + + + + Writes logging event to the log target. Must be overridden in inheriting + classes. + + 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. + + Logging events to be written out. + + + + Flush any pending log messages asynchronously (in case of asynchronous targets). + + The asynchronous continuation. + + + + Creating a new instance of WcfLogReceiverClient + + Inheritors can override this method and provide their own + service configuration - binding and endpoint address + + + + + + Creating a new instance of IWcfLogReceiverClient + + Inheritors can override this method and provide their own + service configuration - binding and endpoint address + + + virtual is used by endusers + + + + Gets or sets the endpoint address. + + The endpoint address. + + + + + Gets or sets the name of the endpoint configuration in WCF configuration file. + + The name of the endpoint configuration. + + + + + Gets or sets a value indicating whether to use binary message encoding. + + + + + + Gets or sets a value indicating whether to use a WCF service contract that is one way (fire and forget) or two way (request-reply) + + + + + + Gets or sets the client ID. + + The client ID. + + + + + Gets the list of parameters. + + The parameters. + + + + + Gets or sets a value indicating whether to include per-event properties in the payload sent to the server. + + + + + + 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: +

+ +
+
+ + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + + + + Renders the logging event message and adds it to the internal ArrayList of log messages. + + The logging event. + + + + Gets the list of logs gathered in the . + + + + + A parameter to MethodCall. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The layout to use for parameter value. + + + + Initializes a new instance of the class. + + Name of the parameter. + The layout. + + + + Initializes a new instance of the class. + + The name of the parameter. + The layout. + The type of the parameter. + + + + Gets or sets the name of the parameter. + + + + + + Gets or sets the type of the parameter. + + + + + + Gets or sets the layout that should be use to calculate the value for the parameter. + + + + + + Calls the specified static method on each log message and passes contextual parameters to it. + + 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: +

+ +
+
+ + + The base class for all targets which call methods (local or remote). + Manages parameters and type coercion. + + + + + Initializes a new instance of the class. + + + + + Prepares an array of parameters to be passed based on the logging event and calls DoInvoke(). + + + The logging event. + + + + + Calls the target method. Must be implemented in concrete classes. + + Method call parameters. + The continuation. + + + + Calls the target method. Must be implemented in concrete classes. + + Method call parameters. + + + + Gets the array of parameters to be passed. + + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + + + + Initializes the target. + + + + + Calls the specified Method. + + Method parameters. + + + + Gets or sets the class name. + + + + + + Gets or sets the method name. The method must be public and static. + + Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx + e.g. + + + + + + The action to be taken when there are more connections then the max. + + + + + Just allow it. + + + + + Discard the connection item. + + + + + Block until there's more room in the queue. + + + + + Action that should be taken if the message overflows. + + + + + Report an error. + + + + + Split the message into smaller pieces. + + + + + Discard the entire message. + + + + + Represents a parameter to a NLogViewer target. + + + + + Initializes a new instance of the class. + + + + + Gets or sets viewer parameter name. + + + + + + Gets or sets the layout that should be use to calcuate the value for the parameter. + + + + + + Discards log messages. Used mainly for debugging and benchmarking. + + 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. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Does nothing. Optionally it calculates the layout text but + discards the results. + + The logging event. + + + + Gets or sets a value indicating whether to perform layout calculation. + + + + + + Marks class as a logging target and assigns a name to it. + + This attribute is not required when registering the target in the API. + + + + Initializes a new instance of the class. + + Name of the target. + + + + Gets or sets a value indicating whether to the target is a wrapper target (used to generate the target summary documentation page). + + + + + Gets or sets a value indicating whether to the target is a compound target (used to generate the target summary documentation page). + + Web service protocol. @@ -14126,45 +15011,14 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Gets or sets the web service URL. + Initializes a new instance of the class. - - - - - Gets or sets the Web service method name. Only used with Soap. - - - - - - Gets or sets the Web service namespace. Only used with Soap. - - - - - - Gets or sets the protocol to be used when calling web service. - - - - - - Should we include the BOM (Byte-order-mark) for UTF? Influences the property. - - This will only work for UTF-8. - - - - - Gets or sets the encoding. - - + Name of the target @@ -14205,6 +15059,43 @@ + + + Gets or sets the web service URL. + + + + + + Gets or sets the Web service method name. Only used with Soap. + + + + + + Gets or sets the Web service namespace. Only used with Soap. + + + + + + Gets or sets the protocol to be used when calling web service. + + + + + + Should we include the BOM (Byte-order-mark) for UTF? Influences the property. + + This will only work for UTF-8. + + + + + Gets or sets the encoding. + + + Asynchronous request queue. @@ -14217,6 +15108,27 @@ Request limit. The overflow action. + + + Enqueues another item. If the queue is overflown the appropriate + action is taken as specified by . + + The log event info. + Queue was empty before enqueue + + + + Dequeues a maximum of count items from the queue + and adds returns the list containing them. + + Maximum number of items to be dequeued (-1 means everything). + The array of log events. + + + + Clears the queue. + + Gets or sets the request limit. @@ -14233,26 +15145,6 @@ Gets the number of requests currently in the queue. - - - Enqueues another item. If the queue is overflown the appropriate - action is taken as specified by . - - The log event info. - - - - Dequeues a maximum of count items from the queue - and adds returns the list containing them. - - Maximum number of items to be dequeued. - The array of log events. - - - - Clears the queue. - - Provides asynchronous, buffered execution of target writes. @@ -14290,25 +15182,113 @@ + + + Base class for targets wrap other (single) targets. + + + + + Returns the text representation of the object. Used for diagnostics. + + A string that describes the target. + + + + Flush any pending log messages (in case of asynchronous targets). + + The asynchronous continuation. + + + + Writes logging event to the log target. Must be overridden in inheriting + classes. + + Logging event to be written out. + + + + Gets or sets the target that is wrapped by this target. + + + - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Maximum number of requests in the queue. The action to be taken when the queue overflows. + + + Waits for the lazy writer thread to finish writing messages. + + The asynchronous continuation. + + + + Initializes the target by starting the lazy writer timer. + + + + + Shuts down the lazy writer timer. + + + + + Starts the lazy writer thread which periodically writes + queued log messages. + + + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + + + + Stops the lazy writer thread. + + + + + Adds the log event to asynchronous queue to be processed by + the lazy writer thread. + + The log event. + + The is called + to ensure that the log event can be processed in another thread. + + + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -14340,44 +15320,6 @@ Gets the queue of lazy writer thread requests. - - - Waits for the lazy writer thread to finish writing messages. - - The asynchronous continuation. - - - - Initializes the target by starting the lazy writer timer. - - - - - Shuts down the lazy writer timer. - - - - - Starts the lazy writer thread which periodically writes - queued log messages. - - - - - Stops the lazy writer thread. - - - - - Adds the log event to asynchronous queue to be processed by - the lazy writer thread. - - The log event. - - The is called - to ensure that the log event can be processed in another thread. - - The action to be taken when the queue overflows. @@ -14418,15 +15360,25 @@ - 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} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. @@ -14445,30 +15397,60 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Size of the buffer. - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. Size of the buffer. The flush timeout. + + + Flushes pending events in the buffer (if any). + + The asynchronous continuation. + + + + Initializes the target. + + + + + Closes the target by flushing pending events in the buffer (if any). + + + + + Adds the specified log event to the buffer and flushes + the buffer in case the buffer gets full. + + The log event. + Gets or sets the number of log events to be buffered. @@ -14493,29 +15475,6 @@ - - - Flushes pending events in the buffer (if any). - - The asynchronous continuation. - - - - Initializes the target. - - - - - Closes the target by flushing pending events in the buffer (if any). - - - - - Adds the specified log event to the buffer and flushes - the buffer in case the buffer gets full. - - The log event. - A base class for targets which wrap other (multiple) targets @@ -14524,15 +15483,10 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. - - - Gets the collection of targets managed by this compound target. - - Returns the text representation of the object. Used for diagnostics. @@ -14551,6 +15505,11 @@ The asynchronous continuation. + + + Gets the collection of targets managed by this compound target. + + Provides fallback-on-error. @@ -14576,17 +15535,18 @@ Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The targets. - + - Gets or sets a value indicating whether to return to the first target after any successful write. + Initializes a new instance of the class. - + The targets. @@ -14601,6 +15561,12 @@ stored in . + + + Gets or sets a value indicating whether to return to the first target after any successful write. + + + Filtering rule for . @@ -14651,22 +15617,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The wrapped target. The condition. - + - Gets or sets the condition expression. Log events who meet this condition will be forwarded - to the wrapped target. + Initializes a new instance of the class. - + The wrapped target. + The condition. @@ -14676,6 +15643,13 @@ Log event. + + + Gets or sets the condition expression. Log events who meet this condition will be forwarded + to the wrapped target. + + + Filters buffered log entries based on a set of conditions that are evaluated on a group of events. @@ -14707,9 +15681,30 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + + + + Evaluates all filtering rules to find the first one that matches. + The matching rule determines the filtering condition to be applied + to all items in a buffer. If no condition matches, default filter + is applied to the array of log events. + + Array of log events to be post-filtered. + Gets or sets the default filter to be applied when no specific rule matches. @@ -14724,15 +15719,6 @@ - - - Evaluates all filtering rules to find the first one that matches. - The matching rule determines the filtering condition to be applied - to all items in a buffer. If no condition matches, default filter - is applied to the array of log events. - - Array of log events to be post-filtered. - Sends log messages to a randomly selected target. @@ -14756,12 +15742,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14793,21 +15786,23 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + Name of the target. The wrapped target. The repeat count. - + - Gets or sets the number of times to repeat each log message. + Initializes a new instance of the class. - + The wrapped target. + The repeat count. @@ -14815,6 +15810,12 @@ The log event. + + + Gets or sets the number of times to repeat each log message. + + + Retries in case of write error. @@ -14837,17 +15838,32 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + - Initializes a new instance of the class. + Initializes a new instance of the class. The wrapped target. The retry count. The retry delay milliseconds. + + + Writes the specified log event to the wrapped target, retrying and pausing in case of an error. + + The log event. + Gets or sets the number of retries that should be attempted on the wrapped target in case of a failure. @@ -14860,12 +15876,6 @@ - - - Writes the specified log event to the wrapped target, retrying and pausing in case of an error. - - The log event. - Distributes log events to targets in a round-robin fashion. @@ -14889,12 +15899,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14934,12 +15951,19 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + - Initializes a new instance of the class. + Initializes a new instance of the class. The targets. @@ -14957,145 +15981,16 @@ Logging events to be written out. - - - Base class for targets wrap other (single) targets. - - - - - Gets or sets the target that is wrapped by this target. - - - - - - Returns the text representation of the object. Used for diagnostics. - - A string that describes the target. - - - - Flush any pending log messages (in case of asynchronous targets). - - The asynchronous continuation. - - - - Writes logging event to the log target. Must be overridden in inheriting - classes. - - Logging event to be written out. - Current local time retrieved directly from DateTime.Now. - - - Gets current local time directly from DateTime.Now. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to local time. - - - - - Current UTC time retrieved directly from DateTime.UtcNow. - - - - - Gets current UTC time directly from DateTime.UtcNow. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to UTC time. - - - - - Fast time source that updates current time only once per tick (15.6 milliseconds). - - - - - Gets raw uncached time from derived time source. - - - - - Gets current time cached for one system tick (15.6 milliseconds). - - - - - Fast local time source that is updated once per tick (15.6 milliseconds). - - - - - Gets uncached local time directly from DateTime.Now. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to local time. - - - - - Fast UTC time source that is updated once per tick (15.6 milliseconds). - - - - - Gets uncached UTC time directly from DateTime.UtcNow. - - - - - Converts the specified system time to the same form as the time value originated from this time source. - - The system originated time value to convert. - - The value of converted to UTC time. - - Defines source of current time. - - - Gets current time. - - - - - Gets or sets current global time source used in all log events. - - - Default time source is . - - Returns a that represents this instance. @@ -15129,6 +16024,105 @@ + + + Gets current time. + + + + + Gets or sets current global time source used in all log events. + + + Default time source is . + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to local time. + + + + + Gets current local time directly from DateTime.Now. + + + + + Current UTC time retrieved directly from DateTime.UtcNow. + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to UTC time. + + + + + Gets current UTC time directly from DateTime.UtcNow. + + + + + Fast time source that updates current time only once per tick (15.6 milliseconds). + + + + + Gets raw uncached time from derived time source. + + + + + Gets current time cached for one system tick (15.6 milliseconds). + + + + + Fast local time source that is updated once per tick (15.6 milliseconds). + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to local time. + + + + + Gets uncached local time directly from DateTime.Now. + + + + + Fast UTC time source that is updated once per tick (15.6 milliseconds). + + + + + Converts the specified system time to the same form as the time value originated from this time source. + + The system originated time value to convert. + + The value of converted to UTC time. + + + + + Gets uncached UTC time directly from DateTime.UtcNow. + + Marks class as a time source and assigns a name to it. @@ -15136,25 +16130,9 @@ - Initializes a new instance of the class. + Initializes a new instance of the class. Name of the time source. - - - 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. - - diff --git a/MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.dll b/MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.dll new file mode 100644 index 0000000..b25d829 Binary files /dev/null and b/MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.dll differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.xml b/MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.xml similarity index 92% rename from MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.xml rename to MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.xml index b1dec9e..bbd3852 100644 --- a/MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.xml +++ b/MTC_Adapter/packages/NLog.4.3.11/lib/wp8/NLog.xml @@ -620,6 +620,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Trace level. @@ -648,6 +678,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Debug level. @@ -676,6 +736,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Info level. @@ -704,6 +794,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Warn level. @@ -732,6 +852,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Error level. @@ -760,6 +910,36 @@ Message which may include positional parameters. Arguments to the message. + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + Message which may include positional parameters. + Argument {0} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + + + + Logs the specified message without an at the Trace level. + + The type of the first argument. + The type of the second argument. + The type of the third argument. + Message which may include positional parameters. + Argument {0} to the message. + Argument {1} to the message. + Argument {2} to the message. + Logs the specified message with an at the Fatal level. @@ -1373,6 +1553,52 @@ The relational operator. Result of the given relational operator. + + + Promote values to the type needed for the comparision, e.g. parse a string to int. + + + + + + + Promoto to type + + + + success? + + + + Try to promote both values. First try to promote to , + when failed, try to . + + + + + + Get the order for the type for comparision. + + + index, 0 to maxint. Lower is first + + + + Dictionary from type to index. Lower index should be tested first. + + + + + Build the dictionary needed for the order of the types. + + + + + + Get the string representing the current + + + Gets the left expression. @@ -1976,6 +2202,11 @@ Initializes a new instance of the class. + + + Compare on name + + Registers the specified target object. The name of the target is read from . @@ -2170,6 +2401,11 @@ Gets all targets. + + + Compare on name + + Arguments for events. @@ -2572,6 +2808,8 @@ A class for configuring NLog through an XML configuration file (App.config style or App.nlog style). + + Parsing of the XML file is also implemented in this class. This class is thread-safe..ToList() is used for that purpose. @@ -2648,6 +2886,23 @@ The new object. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + Remove all spaces, also in between text. @@ -3290,6 +3545,12 @@ Item name. The item value, if defined; otherwise null. + + + Returns all item names + + A collection of the names of all items in the Global Diagnostics Context. + Checks whether the specified item exists in the Global Diagnostics Context. @@ -3569,6 +3830,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -3708,6 +3976,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -3847,6 +4122,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -3986,6 +4268,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -4125,6 +4414,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -4264,6 +4560,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -4728,12 +5031,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. @@ -4816,12 +5113,6 @@ Flushes this current appender. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Writes the specified bytes to a file. @@ -4895,14 +5186,6 @@ Thrown when is called on an Empty instance. - - - Get fullpath for a relative file pattern, e.g *.log - crashes on patterns: ArgumentException: Illegal characters in path. - - - - Close all the allocated appenders. @@ -4919,18 +5202,11 @@ Fluch all the allocated appenders. - - - Gets the file info for a particular appender. - - The file name associated with a particular appender. - The file characteristics, if the file information was retrieved successfully, otherwise null. - Closes the specified appender and removes it from the list. - File name of the appender to be closed. + File name of the appender to be closed. @@ -4996,6 +5272,11 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Should we capture the last write time of a file? + + Multi-process and multi-host file appender which attempts @@ -5025,12 +5306,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5074,12 +5349,6 @@ Closes this instance. - - - Gets the file info. - - The file characteristics, if the file information was retrieved successfully, otherwise null. - Factory class. @@ -5141,6 +5410,72 @@ The file handle. The file characteristics, if the file information was retrieved successfully, otherwise null. + + + A layout that represents a filePath. + + + + + 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. + + + + Cached directory separator char array to avoid memory allocation on each method call. + + + + + non null is fixed, + + + + + is the cache-key, and when newly rendered filename matches the cache-key, + then it reuses the cleaned cache-value . + + + + + is the cache-value that is reused, when the newly rendered filename + matches the cache-key + + + + Initializes a new instance of the class. + + + + Render the raw filename from Layout + + The log event. + String representation of a layout. + + + + Convert the raw filename to a correct filename + + The filename generated by Layout. + String representation of a correct filename. + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + + + + Is this (templated/invalid) path an absolute, relative or unknown? + + toString(format) if the object is a @@ -5161,18 +5496,6 @@ If is null and isn't a already, then the will get a locked by - - - 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 object initialization and termination. @@ -5537,6 +5860,15 @@ The value to check. Name of the parameter. + + + Combine paths + + basepath, not null + optional dir + optional file + + Detects the platform the NLog is running on. @@ -5562,6 +5894,11 @@ Gets a value indicating whether current OS is Unix-based. + + + Gets a value indicating whether current runtime is Mono-based + + Portable implementation of . @@ -5743,6 +6080,18 @@ Dictionary where keys are unique input keys, and values are lists of . + + + Performs bucket sort (group by) on an array of items and returns a dictionary for easy traversal of the result set. + + The type of the value. + The type of the key. + The inputs. + The key selector function. + + Dictionary where keys are unique input keys, and values are lists of . + + Key selector delegate. @@ -5752,6 +6101,73 @@ Value to extract key information from. Key selected from log event. + + + Single-Bucket optimized readonly dictionary. Uses normal internally Dictionary if multiple buckets are needed. + + Avoids allocating a new dictionary, when all items are using the same bucket + + The type of the key. + The type of the value. + + + + + + + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + Will always throw, as dictionary is readonly + + + Will always throw, as dictionary is readonly + + + + + + + + + Will always throw, as dictionary is readonly + + + + + + + + + + + + + + + + Allows direct lookup of existing keys. If trying to access non-existing key exeption is thrown. + Consider to use instead for better safety. + + Key value for lookup + Mapped value found + + + + Non-Allocating struct-enumerator + + Utilities for dealing with values. @@ -5769,6 +6185,22 @@ Stream helpers + + + Copy to output stream and skip BOM if encoding is UTF8 + + + + + + + + Copy stream input to output. Skip the first bytes + + stream to read from + stream to write to + .net35 doesn't have a .copyto + Copy stream input to output. Skip the first bytes @@ -5791,6 +6223,22 @@ current logEvent for FormatProvider. Configuration for DefaultCultureInfo + + + Appends int without using culture, and most importantly without garbage + + + value to append + + + + Appends uint without using culture, and most importantly without garbage + + Credits Gavin Pugh - http://www.gavpugh.com/2010/04/01/xnac-avoiding-garbage-when-working-with-stringbuilder/ + + + value to append + Helpers for . @@ -6030,6 +6478,25 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get the for rendering the messages to a + + LogEvent with culture + Culture in on Layout level + + + + + Get the for rendering the messages to a , needed for date and number formats + + LogEvent with culture + Culture in on Layout level + + + is preferred + + Gets the logging configuration this target is part of. @@ -6078,6 +6545,7 @@ Assembly version. + The entry assembly can't be found in some cases e.g. ASP.NET, Unit tests etc. @@ -6086,6 +6554,11 @@ The to append the rendered data to. Logging event. + + + The (full) name of the assembly. If null, using the entry assembly. + + The call site (class name, method name and source information). @@ -6176,6 +6649,12 @@ Initializes a new instance of the class. + + Cache-key (Last DateTime.UtcNow) + Cache-Value (DateTime.Format result) + + + Cache-key (Last DateTime.Now) + Cache-Value (DateTime.Format result) + Renders the current date and appends it to the specified . @@ -6358,6 +6837,12 @@ + + + Gets or sets the separator used to concatenate exception data specified in the Format. + + + Gets or sets the maximum number of inner exceptions to include in the output. @@ -6807,12 +7292,13 @@ The to append the rendered data to. Logging event. - + Write timestamp to builder with format hh:mm:ss:fff + @@ -7182,6 +7668,11 @@ Gets or sets a value indicating when the cache is cleared. + + + Cachekey. If the cachekey changes, resets the value. For example, the cachekey would be the current day.s + + A value indicating when the cache is cleared. @@ -7623,10 +8114,41 @@ - Gets or sets the condition that must be met for the inner layout to be printed. + Gets or sets the condition that must be met for the layout to be printed. + + + If is not met, print this layout. + + + + + Replaces newline characters from the result of another layout renderer with spaces. + + + + + Initializes a new instance of the class. + + + + + Post-processes the rendered message. + + The text to be post-processed. + Post-processed text. + + + + Gets or sets the line length for wrapping. + + + Only positive values are allowed + + + Converts the result of another layout output to be XML-compliant. @@ -7650,83 +8172,9 @@ - + - A column in the CSV. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the column. - The layout of the column. - - - - Gets or sets the name of the column. - - - - - - Gets or sets the layout of the column. - - - - - - Specifies allowed column delimiters. - - - - - Automatically detect from regional settings. - - - - - Comma (ASCII 44). - - - - - Semicolon (ASCII 59). - - - - - Tab character (ASCII 9). - - - - - Pipe character (ASCII 124). - - - - - Space character (ASCII 32). - - - - - Custom string, specified by the CustomDelimiter. - - - - - A specialized layout that renders CSV-formatted events. - - - - - A specialized layout that supports header and footer. + A layout containing one or more nested layouts. @@ -7842,6 +8290,114 @@ Gets the logging configuration this target is part of. + + + Initializes a new instance of the class. + + + + + Initializes the layout. + + + + + Formats the log event relying on inner layouts. + + The log event to be formatted. + A string representation of the log event. + + + + Closes the layout. + + + + + Gets the inner layouts. + + + + + + A column in the CSV. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The name of the column. + The layout of the column. + + + + Gets or sets the name of the column. + + + + + + Gets or sets the layout of the column. + + + + + + Specifies allowed column delimiters. + + + + + Automatically detect from regional settings. + + + + + Comma (ASCII 44). + + + + + Semicolon (ASCII 59). + + + + + Tab character (ASCII 9). + + + + + Pipe character (ASCII 124). + + + + + Space character (ASCII 32). + + + + + Custom string, specified by the CustomDelimiter. + + + + + A specialized layout that renders CSV-formatted events. + + If is set, then the header generation with columnnames will be disabled. + + + + A specialized layout that supports header and footer. + + Renders the layout for the specified logging event by invoking layout renderers. @@ -7884,6 +8440,12 @@ The log event to be formatted. A string representation of the log event. + + + Get the headers with the column names. + + + Gets the array of parameters to be passed. @@ -7923,7 +8485,7 @@ - Header for CSV layout. + Header with column names for CSV layout. @@ -8028,6 +8590,11 @@ Gets or sets the option to suppress the extra spaces in the output json + + + Gets or sets the option to render the empty object value {} + + Marks class as a layout renderer and assigns a format string to it. @@ -8409,6 +8976,12 @@ Creates and manages instances of objects. + + + Overwrite possible file paths (including filename) for possible NLog config files. + When this property is null, the default file paths ( are used. + + Initializes a new instance of the class. @@ -8564,6 +9137,11 @@ Event arguments. + + + Currenty this logfactory is disposing? + + Releases unmanaged and - optionally - managed resources. @@ -8571,6 +9149,28 @@ True to release both managed and unmanaged resources; false to release only unmanaged resources. + + + Get file paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Overwrite the paths (including filename) for the possible NLog config files. + + The filepaths to the possible config file + + + + Clear the candidate file paths and return to the defaults. + + + + + Get default file paths (including filename) for possible NLog config files. + + Occurs when logging changes. @@ -8980,6 +9580,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Trace level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Trace level. @@ -9119,6 +9726,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Debug level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Debug level. @@ -9258,6 +9872,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Info level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Info level. @@ -9397,6 +10018,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Warn level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Warn level. @@ -9536,6 +10164,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Error level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Error level. @@ -9675,6 +10310,13 @@ A to be written. An exception to be logged. + + + Writes the diagnostic message and exception at the Fatal level. + + A to be written. + An exception to be logged. + Writes the diagnostic message and exception at the Fatal level. @@ -11075,6 +11717,12 @@ Item name. The value of , if defined; otherwise null. + + + Returns all item names + + A set of the names of all items in current thread-MDC. + Checks whether the specified item exists in current thread MDC. @@ -11582,6 +12230,12 @@ Log event to be written out. + + + Writes a log event to the log target, in a thread safe manner. + + Log event to be written out. + Writes an array of logging events to the log target. By default it iterates on all @@ -11590,6 +12244,12 @@ Logging events to be written out. + + + Writes an array of logging events to the log target, in a thread safe manner. + + Logging events to be written out. + Merges (copies) the event context properties from any event info object stored in @@ -11640,6 +12300,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Flush any pending log messages asynchronously (in case of asynchronous targets). @@ -11706,6 +12375,12 @@ + + + Gets or sets the end of line value if a newline is appended at the end of log message . + + + Gets or sets the maximum message size in bytes. @@ -11756,6 +12431,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Gets or sets a value indicating whether to include NLog-specific extensions to log4j schema. @@ -11815,6 +12499,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class with a name. + + Name of the target. + Writes log messages to the console. @@ -11873,6 +12563,41 @@ The layout with header and footer. + + + Should logging being paused/stopped because of the race condition bug in Console.Writeline? + + + Console.Out.Writeline / Console.Error.Writeline could throw 'IndexOutOfRangeException', which is a bug. + See http://stackoverflow.com/questions/33915790/console-out-and-console-error-race-condition-error-in-a-windows-service-written + and https://connect.microsoft.com/VisualStudio/feedback/details/2057284/console-out-probable-i-o-race-condition-issue-in-multi-threaded-windows-service + + Full error: + Error during session close: System.IndexOutOfRangeException: Probable I/ O race condition detected while copying memory. + The I/ O package is not thread safe by default.In multithreaded applications, + a stream must be accessed in a thread-safe way, such as a thread - safe wrapper returned by TextReader's or + TextWriter's Synchronized methods.This also applies to classes like StreamWriter and StreamReader. + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -11893,7 +12618,7 @@ Note that the Error option is not supported on .NET Compact Framework. - + Write to output @@ -11905,6 +12630,13 @@ + + + Gets or sets a value indicating whether to auto-check if the console is available + - Disables console writing if Environment.UserInteractive = False (Windows Service) + - Disables console writing if Console Standard Input is not available (Non-Console-App) + + A descriptor for an archive created with the DateAndSequence numbering mode. @@ -11957,6 +12689,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Initializes the target. @@ -12002,6 +12751,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Increases the number of messages. @@ -12055,6 +12813,27 @@ AddToArchive every minute. + + + Type of filepath + + + + + Detect of relative or absolute + + + + + Relative path + + + + + Absolute path + + Best for performance + Writes log messages to one or more files. @@ -12078,16 +12857,6 @@ This value disables file archiving based on the size. - - - Gets or sets a value indicating whether to compress archive files into the zip archive format. - - - - - Cached directory separator char array to avoid memory allocation on each method call. - - Holds the initialised files each given time by the instance. Against each file, the last write time is stored. @@ -12121,21 +12890,16 @@ filenames becomes too long. - + The filename as target - + The archive file name as target - - - The filename if is a fixed string - - The date of the previous log event. @@ -12154,6 +12918,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Refresh the ArchiveFilePatternToWatch option of the . @@ -12217,6 +12990,13 @@ The logging event. + + + Get full filename (=absolute) and cleaned if needed. + + + + Writes the specified array of logging events to a file specified in the FileName @@ -12285,13 +13065,6 @@ File name template which contains the numeric pattern to be replaced. Value which will replace the numeric pattern. - - - Moves the archive file to the specified file name. - - The archive file to move. - The destination file name. - Archives the using a sequence style numbering. The most recent archive has the @@ -12340,6 +13113,17 @@ An enumeration of archive infos, ordered by their file creation date. + + + Parse filename with date and sequence pattern + + + dateformat for archive + + the found pattern. When failed, then default + the found pattern. When failed, then default + + Gets the collection of files in the specified directory which they match the . @@ -12407,30 +13191,44 @@ when old archives should be deleted; otherwise. - + + + Archives the file if it should be archived. + + The file name to check for. + Log event that the instance is currently processing. + The size in bytes of the next chunk of data to be written in the file. + + Indicates if the automatic archiving process should be executed. File name to be written. Log event that the instance is currently processing. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on file size constrains. + Returns the correct filename to archive + + + + + + Gets the file name for archiving, or null if archiving should not occur based on file size. File name to be written. The size in bytes of the next chunk of data to be written in the file. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. - + - Indicates if the automatic archiving process should be executed based on date/time constrains. + Returns the file name for archiving, or null if archiving should not occur based on date/time. File name to be written. Log event that the instance is currently processing. - when archiving should be executed; otherwise. + Filename to archive. If null, then nothing to archive. @@ -12464,11 +13262,12 @@ Indicates that only content section should be written in the file. when file header should be written; otherwise. - + - Writes the file footer and uninitialises the file in instance internal structures. + Writes the file footer and finalizes the file in instance internal structures. File name to close. + Indicates if the file is being finalized for archiving. @@ -12483,13 +13282,14 @@ File name to be written. Log event that the instance is currently processing. - + Creates the file specified in and writes the file content in each entirety i.e. Header, Content and Footer. The name of the file to be written. Sequence of to be written in the content section of the file. + First attempt to write? This method is used when the content of the log file is re-written on every write. @@ -12498,13 +13298,6 @@ File appender associated with the file. - - - Returns the length of a specified file and the last time it has been written. File appender is queried before the file system. - - File which the information are requested. - The file characteristics, if the file information was retrieved successfully, otherwise null. - The sequence of to be written in a file after applying any formating and any @@ -12514,16 +13307,6 @@ Sequence of to be written. Usually it is used to render the header and hooter of the files. - - - Replaces any invalid characters found in the with underscore i.e _ character. - Invalid characters are defined by .NET framework and they returned by method. - Note: not implemented in Silverlight - - The original file name which might contain invalid characters. - The cleaned up file name without any invalid characters. - Gets or sets the name of the file to write to. @@ -12547,6 +13330,11 @@ If set to false, nothing gets written when the filename is wrong. + + + Is the an absolute or relative path? + + Gets or sets a value indicating whether to create directories if they do not exist. @@ -12597,6 +13385,11 @@ + + + Should we capture the last write time of a file? + + Gets or sets the line ending mode. @@ -12740,6 +13533,11 @@ + + + Is the an absolute or relative path? + + Gets or sets the name of the file to be used for an archive. @@ -12764,11 +13562,30 @@ + + + Used to compress log files during archiving. + This may be used to provide your own implementation of a zip file compressor, + on platforms other than .Net4.5. + Defaults to ZipArchiveFileCompressor on .Net4.5 and to null otherwise. + + + + + Gets or sets a value indicating whether to compress archive files into the zip archive format. + + + Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. + + + Gets or sets a value indicating whether the footer should be written only when the file is archived. + + Gets the characters that are appended after each line. @@ -12863,6 +13680,19 @@ when no pattern can be found. + + + may be configured to compress archived files in a custom way + by setting before logging your first event. + + + + + Create archiveFileName by compressing fileName. + + Absolute path to the log file to compress. + Absolute path to the compressed archive file to create. + Line ending mode. @@ -13021,6 +13851,15 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + Name of the target. + Renders the logging event message and adds it to the internal ArrayList of log messages. @@ -13140,6 +13979,17 @@ + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + Initializes the target. @@ -13249,6 +14099,23 @@ + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Does nothing. Optionally it calculates the layout text but @@ -13340,6 +14207,12 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target + Calls the target method. Must be implemented in concrete classes. @@ -13434,13 +14307,14 @@ action is taken as specified by . The log event info. + Queue was empty before enqueue Dequeues a maximum of count items from the queue and adds returns the list containing them. - Maximum number of items to be dequeued. + Maximum number of items to be dequeued (-1 means everything). The array of log events. @@ -13536,6 +14410,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -13572,6 +14453,13 @@ queued log messages. + + + Attempts to start an instant timer-worker-thread which can write + queued log messages. + + Returns true when scheduled a timer-worker-thread + Stops the lazy writer thread. @@ -13588,6 +14476,12 @@ to ensure that the log event can be processed in another thread. + + + Write to queue without locking + + + Gets or sets the number of log events that should be processed in a batch @@ -13665,6 +14559,16 @@ The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + + Initializes a new instance of the class. + + + The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message} + + The wrapped target. + Name of the target + Initializes a new instance of the class. @@ -13689,6 +14593,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Initializes a new instance of the class. @@ -13817,6 +14728,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -13895,6 +14813,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The condition. + Initializes a new instance of the class. @@ -13951,6 +14877,18 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + Evaluates all filtering rules to find the first one that matches. @@ -14000,6 +14938,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -14037,6 +14982,14 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The repeat count. + Initializes a new instance of the class. @@ -14081,6 +15034,15 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The wrapped target. + The retry count. + The retry delay milliseconds. + Initializes a new instance of the class. @@ -14133,6 +15095,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. @@ -14178,6 +15147,13 @@ Initializes a new instance of the class. + + + Initializes a new instance of the class. + + Name of the target. + The targets. + Initializes a new instance of the class. diff --git a/MTC_Adapter/packages/NLog.4.3.3/NLog.4.3.3.nupkg b/MTC_Adapter/packages/NLog.4.3.3/NLog.4.3.3.nupkg deleted file mode 100644 index 139dd29..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/NLog.4.3.3.nupkg and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.dll deleted file mode 100644 index 760ae65..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/MonoAndroid10/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.dll deleted file mode 100644 index 2853e17..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/Xamarin.iOS10/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.dll deleted file mode 100644 index ba4b242..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/net35/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.dll deleted file mode 100644 index f928a18..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/net40/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.dll deleted file mode 100644 index 8186aa2..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/net45/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.dll deleted file mode 100644 index 5f68843..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/sl4/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.dll deleted file mode 100644 index 50340b7..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/sl5/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.dll b/MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.dll deleted file mode 100644 index 83f7cb9..0000000 Binary files a/MTC_Adapter/packages/NLog.4.3.3/lib/wp8/NLog.dll and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.Config.4.3.11/NLog.Config.4.3.11.nupkg b/MTC_Adapter/packages/NLog.Config.4.3.11/NLog.Config.4.3.11.nupkg new file mode 100644 index 0000000..0f26033 Binary files /dev/null and b/MTC_Adapter/packages/NLog.Config.4.3.11/NLog.Config.4.3.11.nupkg differ diff --git a/MTC_Adapter/packages/NLog.Config.4.3.3/content/NLog.config b/MTC_Adapter/packages/NLog.Config.4.3.11/content/NLog.config similarity index 84% rename from MTC_Adapter/packages/NLog.Config.4.3.3/content/NLog.config rename to MTC_Adapter/packages/NLog.Config.4.3.11/content/NLog.config index a5fc24d..7a0f3aa 100644 --- a/MTC_Adapter/packages/NLog.Config.4.3.3/content/NLog.config +++ b/MTC_Adapter/packages/NLog.Config.4.3.11/content/NLog.config @@ -4,28 +4,27 @@ xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true" throwExceptions="false" - internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" > + internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log"> - - - - @@ -39,4 +38,4 @@ --> - \ No newline at end of file + diff --git a/MTC_Adapter/packages/NLog.Config.4.3.3/tools/Install.ps1 b/MTC_Adapter/packages/NLog.Config.4.3.11/tools/Install.ps1 similarity index 100% rename from MTC_Adapter/packages/NLog.Config.4.3.3/tools/Install.ps1 rename to MTC_Adapter/packages/NLog.Config.4.3.11/tools/Install.ps1 diff --git a/MTC_Adapter/packages/NLog.Config.4.3.3/NLog.Config.4.3.3.nupkg b/MTC_Adapter/packages/NLog.Config.4.3.3/NLog.Config.4.3.3.nupkg deleted file mode 100644 index e011cb7..0000000 Binary files a/MTC_Adapter/packages/NLog.Config.4.3.3/NLog.Config.4.3.3.nupkg and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.Schema.4.3.0/NLog.Schema.4.3.0.nupkg b/MTC_Adapter/packages/NLog.Schema.4.3.0/NLog.Schema.4.3.0.nupkg deleted file mode 100644 index 7a062a0..0000000 Binary files a/MTC_Adapter/packages/NLog.Schema.4.3.0/NLog.Schema.4.3.0.nupkg and /dev/null differ diff --git a/MTC_Adapter/packages/NLog.Schema.4.3.11/NLog.Schema.4.3.11.nupkg b/MTC_Adapter/packages/NLog.Schema.4.3.11/NLog.Schema.4.3.11.nupkg new file mode 100644 index 0000000..50e2179 Binary files /dev/null and b/MTC_Adapter/packages/NLog.Schema.4.3.11/NLog.Schema.4.3.11.nupkg differ diff --git a/MTC_Adapter/packages/NLog.Schema.4.3.0/content/NLog.xsd b/MTC_Adapter/packages/NLog.Schema.4.3.11/content/NLog.xsd similarity index 96% rename from MTC_Adapter/packages/NLog.Schema.4.3.0/content/NLog.xsd rename to MTC_Adapter/packages/NLog.Schema.4.3.11/content/NLog.xsd index dc821bc..f61050f 100644 --- a/MTC_Adapter/packages/NLog.Schema.4.3.0/content/NLog.xsd +++ b/MTC_Adapter/packages/NLog.Schema.4.3.11/content/NLog.xsd @@ -232,7 +232,6 @@ - @@ -369,6 +368,7 @@ + @@ -402,6 +402,11 @@ Instance of that is used to format log messages. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -526,6 +531,7 @@ + @@ -554,6 +560,11 @@ Indicates whether to use default row highlighting rules. + + + Indicates whether to auto-check if the console is available. - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + The encoding for writing messages to the . @@ -665,6 +676,7 @@ + @@ -692,6 +704,11 @@ Indicates whether to send the log messages to the standard error instead of the standard output. + + + Indicates whether to auto-check if the console is available - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + The encoding for writing messages to the . @@ -1020,10 +1037,13 @@ - - + + + + + @@ -1033,15 +1053,15 @@ - + + - @@ -1093,14 +1113,29 @@ Size in bytes above which log files will be automatically archived. Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: + + + Indicates whether to compress archive files into the zip archive format. + + Maximum number of archive files that should be kept. - + - Indicates whether to compress archive files into the zip archive format. + Is the an absolute or relative path? + + + + + Is the an absolute or relative path? + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. @@ -1108,9 +1143,9 @@ Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation. - + - Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. + Indicates whether the footer should be written only when the file is archived. @@ -1158,9 +1193,9 @@ Indicates whether concurrent writes to the log file by multiple processes on the same host. - + - Delay in milliseconds to wait before attempting to write to the file again. + Indicates whether to keep log file open instead of opening and closing it on each logging event. @@ -1193,16 +1228,16 @@ Indicates whether to automatically flush the file buffers after each log message. + + + Delay in milliseconds to wait before attempting to write to the file again. + + Number of times the write is appended on the file before NLog discards the log message. - - - Indicates whether to keep log file open instead of opening and closing it on each logging event. - - @@ -1224,6 +1259,13 @@ + + + + + + + @@ -1704,6 +1746,7 @@ + @@ -1729,6 +1772,11 @@ Encoding to be used. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -1784,6 +1832,7 @@ + @@ -1817,6 +1866,11 @@ Instance of that is used to format log messages. + + + End of line value if a newline is appended at the end of log message . + + Maximum message size in bytes. @@ -2238,6 +2292,18 @@ + + + + + + + + + + + + @@ -2334,8 +2400,14 @@ + + + + Option to render the empty object value {} + + Option to suppress the extra spaces in the output json