Set the logging level on some part of a package.

log_module(module, level_name = "debug")

Arguments

module

The string name of a section of the package.

level_name

One of the strings (trace, debug, info, warn, error, fatal). The default is "debug".

If you want to debug one module, then you can set its level differently here from the rest of the package. If the package is named `macro` and this function is called with `log_module("mosquito", "debug")`, then this will set two loggers to debug level: `macro.mosquito` and `macro.err.mosquito`, where the second one logs warnings and above to a file.