LogError
This command can be used to log an error.
The macro log file of SmartAnalyzer supports three log categories: information, warning and error. LogError uses the Error category.
Compatibility
Available as of IDEA version 9.0
Syntax
LogError(message as String, Optional args)
Parameter
message
The error message 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 an error.
SmartContext.Log.LogError "Error Message"
'Logging a parameterized error.
SmartContext.Log.LogError "Error number: {0}; description: {1}", Err.Number, Err.Description
End Sub