DokanNet.Logging.LoggerExtensions Class Reference

Extension functions to log messages. More...

Static Public Member Functions

static string FormatMessageForLogging (this string message, string category=null, string loggerName="", DateTimeFormatInfo dateTimeFormatInfo=null)
 Format a log message. More...
 
static string FormatMessageForLogging (this string message, bool addDateTime=false, string category=null, string loggerName="", DateTimeFormatInfo dateTimeFormatInfo=null)
 Format a log message. More...
 

Detailed Description

Extension functions to log messages.

Member Function Documentation

static string DokanNet.Logging.LoggerExtensions.FormatMessageForLogging ( this string  message,
string  category = null,
string  loggerName = "",
DateTimeFormatInfo  dateTimeFormatInfo = null 
)
inlinestatic

Format a log message.

Parameters
messageMessage to format.
categoryOptional category to add to the log message.
loggerNameOptional log name to at to the log message.
dateTimeFormatInfoAn object that supplies format information for DateTime.
Returns
A formated log message.
static string DokanNet.Logging.LoggerExtensions.FormatMessageForLogging ( this string  message,
bool  addDateTime = false,
string  category = null,
string  loggerName = "",
DateTimeFormatInfo  dateTimeFormatInfo = null 
)
inlinestatic

Format a log message.

Parameters
messageMessage to format.
addDateTimeIf date and time shout be added to the log message.
categoryOptional category to add to the log message.
loggerNameOptional log name to at to the log message.
dateTimeFormatInfoAn object that supplies format information for DateTime.
Returns
A formated log message.

The documentation for this class was generated from the following file:
  • LoggerExtensions.cs