The Loggers module provides you access to the server’s Logger instances.
Here is an overview of the Loggers functions:
Function | Parameters | Results |
---|---|---|
get | loggerName | Logger |
Below you find short descriptions about each of the functions and some examples about how to use them in your spells.
The ‘get’ function returns the Logger with the given name.
Accessing the Logger with the name “my-logger”.
local logger = Loggers.get("my-logger")