The JSMA log provides functionality for writing to a log file.
What can JSMA logdo for me?You could easily use the JSMA log to create a log-entry |
Here is an example on how to write data to the JSMA log file:
... log.error(message, [options]) ... |
The JSMA log provides the following methods:
Writes the message into the log file with level debug
... log.debug(message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.
Writes the message into the log file with level error
... log.error(message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.
Writes the message into the log file with level fatal
... log.fatal(message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.
Writes the message into the logfile with level info
... log.info(message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.
Writes the message into the log file with level warning
... log.warn(message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.
Writes the message into the log file with the given level (type)
... log.write(type, message, [options]) ... |
May have a key 'broadcastEvent':bool which determines whether the log message shows up in the websocket log view.