Logging

Severities

Tag
Severity

'd'

Debug

'i'

Info

'w'

Warning

'e'

Error

's'

Success

Functions

sWatch.log

Prints a log to the server console

Arguments

  1. (String) loglevel - See Severities

  2. (String) message

Example

sWatch.log("d", "A debug message")
sWatch.log("w", "A warning message")
// Too lazy to complete, self-explanatory
sWatch.getErrors

Returns a table of all error logs that accured during runtime. Used e. g. in server health.

Returns

  1. (Table) errors

Last updated