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
Syntaxpublic void WriteIf(
bool condition,
Object message,
Exception exception
)
Public Sub WriteIf (
condition As Boolean,
message As Object,
exception As Exception
)
public:
void WriteIf(
bool condition,
Object^ message,
Exception^ exception
)
member WriteIf :
condition : bool *
message : Object *
exception : Exception -> unit
Parameters
- condition
- Type: SystemBoolean
The condition to test. - message
- Type: SystemObject
The message to write. - exception
- Type: SystemException
The exception to write.
See Also