Click or drag to resize
NLogILoggerBaseLog Method (LogLevel, String, Exception)

Note: This API is now obsolete.

Writes the diagnostic message and exception at the specified level.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 0.0.0.0
Syntax
[ObsoleteAttribute("Use Log(LogLevel level, Exception exception, [Localizable(false)] string message, params object[] args)")]
void Log(
	LogLevel level,
	string message,
	Exception exception
)

Parameters

level
Type: NLogLogLevel
The log level.
message
Type: SystemString
A string to be written.
exception
Type: SystemException
An exception to be logged.
See Also