LoggerWriteIf Method (LogLevel, String, Exception)

Writes the specified message and exception if the log level is enabled.

Namespace:  Aspose.Email.Tools.Logging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public void WriteIf(
	LogLevel condition,
	string message,
	Exception exception
)

Parameters

condition
Type: Aspose.Email.Tools.LoggingLogLevel
The log level.
message
Type: SystemString
The message to log.
exception
Type: SystemException
The exception to log.
See Also