Copy link to clipboard
Copied
LrLogger contains a variety of logging functions at different severity levels - debug(), info(), warn(), trace() etc.
How does one toggle these severity levels on and off?
logger:enable (actions) controls what happens to each of "fatal", "error", "warn", "info", "debug", and "trace". For example, to direct output to a logfile for "fatal" and "error" (and ignore the other levels);
logger:enable {fatal = "logfile", error = "logfile"}
Copy link to clipboard
Copied
logger:enable (actions) controls what happens to each of "fatal", "error", "warn", "info", "debug", and "trace". For example, to direct output to a logfile for "fatal" and "error" (and ignore the other levels);
logger:enable {fatal = "logfile", error = "logfile"}
Copy link to clipboard
Copied
Thank you very much johnrellis​! That's exactly what I was looking for.