...
The JSMA log provides functionality for handling logswriting to a log file.
Info |
---|
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 a the JSMA log file:
Code Block | ||||
---|---|---|---|---|
| ||||
... log.error(message, [options]) ... |
...
Writes the message into the log - file with level debug
Example
...
Writes the message into the log - file with level error
Example
...
Writes the message into the log - file with level fatal
Example
...
Writes the message into the log-file logfile with level info
Example
Code Block | ||||
---|---|---|---|---|
| ||||
... log.info(message, [options]) ... |
...
Writes the message into the log - file with level warning
Example
...
Writes the message into the log - file with the given level (type)
...