Logs a single message with supplied parameter values substituted into it.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public void Log( SourceLevels level, string category, string message, params string[] messageParts )
Public Sub Log ( _ level As SourceLevels, _ category As String, _ message As String, _ ParamArray messageParts As String() _ )
public: virtual void Log( SourceLevels level, String^ category, String^ message, ... array<String^>^ messageParts ) sealed
Parameters
- level (SourceLevels)
- The logging level, indicating the severity of the message to be logged.
- category (String)
- The log category. This identifies the type of message being logged or the component from which the message originates.
- message (String)
- The message to be logged.
- messageParts (array< String >[]()[])
- One or more message parameter values that are to be substituted into message.
Remarks
The message can contain C# format specifiers that correspond to the message parameters.
The method should substitute the message parameters into the supplied message
(using Format(String, array<Object>[]()[])),
to produce a readable message that is then logged.