LoggerWriteIf Method (LogLevel, String) |
Writes the specified message if the log level is enabled.
Namespace:
Aspose.Email.Tools.Logging
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntaxpublic void WriteIf(
LogLevel condition,
string message
)
Public Sub WriteIf (
condition As LogLevel,
message As String
)
public:
void WriteIf(
LogLevel^ condition,
String^ message
)
member WriteIf :
condition : LogLevel *
message : string -> unit
Parameters
- condition
- Type: Aspose.Email.Tools.LoggingLogLevel
The log level. - message
- Type: SystemString
The message to log.
See Also