Each logging message has a section. Sections can be used to structure your logs. For example you can choose different loggers according to the section.
Each section carries a level, and messages with a lower log level than than the section level will be dropped.
Section levels are initialised using the contents of the LWT_LOG
environment variable, which must contain one or more rules of the form pattern -> level
separated by ";". Where pattern
is a string that may contain *
.
For example, if LWT_LOG
contains:
access -> warning;
foo[*] -> error
then the level of the section "access"
is Warning
and the level of any section matching "foo[*]"
is Error
.
If the pattern is omited in a rule then the pattern "*"
is used instead, so LWT_LOG
may just contain "debug"
for instance.
By default, the following rule apply : "* -> notice"