Wizards of Lua

The Art of Spell Crafting


Loggers - Accessing Loggers

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

Functions

Below you find short descriptions about each of the functions and some examples about how to use them in your spells.


get (loggerName) -> Logger

The ‘get’ function returns the Logger with the given name.

Example

Accessing the Logger with the name “my-logger”.

 local logger = Loggers.get("my-logger")