mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Fix missing log4j2.properties file on Windows
fix Issue #6352 On Windows, Logstash can't find log4j2.properties file with above message at startup. ``` Could not find log4j2 configuration at path /LS_HOME/config/log4j2.properties. ``` Fixes #6903
This commit is contained in:
parent
edd1b40de7
commit
4bfb8c403b
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ class LogStash::Runner < Clamp::StrictCommand
|
|||
java.lang.System.setProperty("ls.log.level", setting("log.level"))
|
||||
unless java.lang.System.getProperty("log4j.configurationFile")
|
||||
log4j_config_location = ::File.join(setting("path.settings"), "log4j2.properties")
|
||||
LogStash::Logging::Logger::initialize("file://" + log4j_config_location)
|
||||
LogStash::Logging::Logger::initialize("file:///" + 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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue