LoggerWriteIf Method (Boolean, String)

Writes the specified message 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,
	string message
)

Parameters

condition
Type: SystemBoolean
The condition to test.
message
Type: SystemString
The message to write.
See Also