Called to inform the logger to log a message. A level is provided to indicate the severity
of the message, a number of categories are provided to identify the components or the types of message being
logged in addition to the message and msgParts.
Declaration Syntax
C# | Visual Basic | Visual C++ |
void Log( SourceLevels level, string[] categories, string message, params string[] msgParts )
Sub Log ( _ level As SourceLevels, _ categories As String(), _ message As String, _ ParamArray msgParts As String() _ )
void Log( SourceLevels level, array<String^>^ categories, String^ message, ... array<String^>^ msgParts )
Parameters
- level (SourceLevels)
- The logging level, indicating the severity of the message to be logged.
- categories (array< String >[]()[])
- An arrary of log categories. These categories identify the type of message being logged and the components from which the message originates.
- message (String)
- The message to be logged.
- msgParts (array< String >[]()[])
- The message parts to be formatted into message.
Remarks
The msgParts should be passed with message
to Format(String, Object[] to create a readable message.