mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
63233b1cf1
commit
b072d93c85
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
log4j_config_location = ::File.join(setting("path.settings"), "log4j2.properties")
|
||||
LogStash::Logging::Logger::initialize(log4j_config_location)
|
||||
end
|
||||
# override log level that may have been introduced from a custom log4j config file
|
||||
LogStash::Logging::Logger::configure_logging(setting("log.level"))
|
||||
|
||||
if setting("config.debug") && logger.debug?
|
||||
logger.warn("--config.debug was specified, but log.level was not set to \'debug\'! No config info will be logged.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue