mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-29 19:23:16 +00:00
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:
parent
7db05e5828
commit
8843a9ec2b
@ -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
|
||||
|
||||
|
||||
#################################################################################
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user