writeLogLevel

Syntax

writeLogLevel(level, X1, [X2, X3,...,Xn])

Arguments

level indicates the log level. It can take the following values (from low to high): DEBUG, INFO, WARNING, ERROR.

X1, X2, X3, ... Xn is the content to be written to the log file. Each Xi is a line in the log file. The following data types are supported: Logical, Integral, Temporal, Floating, Literal, and Decimal.

Details

The command writes logs of the specified level to the log files. It can only be called by an administrator.

Note: The specified level must be equal to or higher than the log level configured by the logLevel parameter or set by the setLogLevel function, otherwise the logs will not be written to the log file.

Examples

writeLogLevel(INFO,111111111111,"This is an INFO message") 
// Check the log file.
<INFO> :111111111111
<INFO> :This is an INFO message

Related functions: writeLog, setLogLevel