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
)
Public Sub WriteIf (
condition As LogLevel,
message As String,
exception As Exception
)
public:
void WriteIf(
LogLevel^ condition,
String^ message,
Exception^ exception
)
member WriteIf :
condition : LogLevel *
message : string *
exception : Exception -> unit
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