chore(userspace/falco,falco.yaml): enable libs_logger with info severity by default.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2025-02-28 15:33:56 +01:00 committed by poiana
parent 7db05e5828
commit 8843a9ec2b
2 changed files with 5 additions and 5 deletions

View File

@ -906,10 +906,10 @@ log_level: info
# behavior of the underlying components used by Falco. Only logs of a certain
# severity level or higher will be emitted. Supported levels: "fatal",
# "critical", "error", "warning", "notice", "info", "debug", "trace". It is not
# recommended for production use.
# recommended to use "debug" and "trace" for production use.
libs_logger:
enabled: false
severity: debug
enabled: true
severity: info
#################################################################################

View File

@ -213,8 +213,8 @@ void falco_configuration::init_logger() {
m_log_level = m_config.get_scalar<std::string>("log_level", "info");
falco_logger::set_level(m_log_level);
falco_logger::set_sinsp_logging(
m_config.get_scalar<bool>("libs_logger.enabled", false),
m_config.get_scalar<std::string>("libs_logger.severity", "debug"),
m_config.get_scalar<bool>("libs_logger.enabled", true),
m_config.get_scalar<std::string>("libs_logger.severity", "info"),
"[libs]: ");
falco_logger::log_stderr = m_config.get_scalar<bool>("log_stderr", false);
falco_logger::log_syslog = m_config.get_scalar<bool>("log_syslog", true);