LoggerWriteIf Method (Boolean, Object, Exception)

Writes the specified message and exception to appenders if condition is true.

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

Parameters

condition
Type: SystemBoolean
The condition to test.
message
Type: SystemObject
The message to write.
exception
Type: SystemException
The exception to write.
See Also