NLog Logging Library

Logger.Log Method (LogLevel, IFormatProvider, String, Object[])

[This is preliminary documentation and subject to change.]

Writes the diagnostic message at the specified level using the specified parameters and formatting them with the supplied format provider.

[Visual Basic]
Overloads Public Sub Log( _
   ByVal level As LogLevel, _
   ByVal formatProvider As IFormatProvider, _
   ByVal message As String, _
   ParamArray args As Object() _
)
[C#]
public void Log(
   LogLevel level,
   IFormatProvider formatProvider,
   string message,
   params object[] args
);

Parameters

level
the log level.
formatProvider
An IFormatProvider that supplies culture-specific formatting information.
message
A string containing format items.
args
Arguments to format.

See Also

Logger Class | NLog Namespace | Logger.Log Overload List