CasewareDocs

LogWarning

Logs a warning.

The macro log file of SmartAnalyzer supports three log categories: information, warning and error. LogWarning uses the Warning category.

Compatibility

Available as of IDEA version 9.0

Syntax

LogWarning(message as String, Optional args)

Parameters

message

The warning to log.

args

The optional argument(s) are representing the values which are replacing the "message" placeholders.

Remark

An error is raised if the message is null.

Example

Sub Main 
'Logging a warning.
SmartContext.Log.LogWarning "Warning message to log"

'Logging a parameterized warning.
SmartContext.Log.LogWarning "The table {0} is empty", db.Name
End Sub