src/backend/doc/log_config.md
The configuration file can define an array parameter called logging.
This configures the visibility of specific logs in core areas based on
which string flags are present.
For example, the following configuration enables HTTP request logs:
{
"logging": ['http']
}
Sometimes "enabling" a log means moving its log level from debug to info.
http: http requestsfsentries-not-found: information about files that were stat'd but weren't therelog_upcoming_alarms to true will log alarms before they are created.
This would be useful if AlarmService itself is failing.trace_logs to true will display a stack trace below every log message.
This can be useful if you don't know where a particular log is coming from and
want to track it down.Services can be configured to change their logging behavior. Services will have one of two behaviors:
log.info can be used to create an [INFO] log messagelog.info is redirected to log.debugServices will have info logging enabled by default, unless the class definition
has the static member static LOG_DEBUG = true (in which case debug logging only
is the default).
In a service's configuration block the desired behavior can be specified by setting
either "log_debug": true or "log_info": true