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: 21.3
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