05.06 - Build-in shortcuts (macros)


The build-in shortcuts available in the common components plug-in concern the command log. There is a macro for each kind of statut (DEBUG, ERROR, INFO, WARN).

# DEBUG $(message)

# DEBUG {message}
=>
EXECUTE log WITH $({message}) USING $(logLevel:DEBUG) AS whatever

What: This macro permits to write a message in the console with the statut DEBUG.

Input:

  • message: The message to display.

# ERROR $(message)

# ERROR {message}
=>
EXECUTE log WITH $({message}) USING $(logLevel:ERROR) AS whatever

What: This macro permits to write a message in the console with the statut ERROR.

Input:

  • message: The message to display.

# INFO $(message)

# INFO {message}
=>
EXECUTE log WITH $({message}) USING $(logLevel:INFO) AS whatever

What: This macro permits to write a message in the console with the statut INFO.

Input:

  • message: The message to display.

# WARN $(message)

# WARN {message}
=>
EXECUTE log WITH $({message}) USING $(logLevel:WARN) AS whatever

What: This macro permits to write a message in the console with the statut WARN.

Input:

  • message: The message to display.

Example

# INFO $(This is an info message logged with a macro)