Menu
Contents

Log library

The log library provides 7 functions, each function takes all its arguments, concatenates them into a string then sends it to the Traintastic server log.

Functions

critical ≥ 0.1

log.critical(message [, ...])

Log a critical message.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

debug ≥ 0.1

log.debug(message [, ...])

Log a debug message, useful when developing or testing a script.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

error ≥ 0.1

log.error(message [, ...])

Log an error message.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

fatal ≥ 0.1

log.fatal(message [, ...])

Log a fatal message, use this for unrecoverble errors only.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

info ≥ 0.1

log.info(message [, ...])

Log a info message.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

notice ≥ 0.1

log.notice(message [, ...])

Log a notice message.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.

warning ≥ 0.1

log.warning(message [, ...])

Log a warning message.

Parameters

message
The message.
...
Additional values, all values are concatenated and seperated by a space.