Skip to main content
log4j2 settings
Source Link
Nick Pierpoint
  • 17.8k
  • 9
  • 48
  • 74

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file  .

pleasePlease note that as of log4j2, the new system variable to use is log4j.configurationFile and you put in the actual path to the file (i.e., without the file: prefix) and it will automatically load the factory based on the extension of the configuration file:

-Dlog4j.configurationFile=/path/to/log4jconfig.{ext} 

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file  .

please note that as of log4j2, the new system variable to use is log4j.configurationFile and you put in the actual path to the file (i.e., without the file: prefix) and it will automatically load the factory based on the extension of the configuration file:

-Dlog4j.configurationFile=/path/to/log4jconfig.{ext} 

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file.

Please note that as of log4j2, the new system variable to use is log4j.configurationFile and you put in the actual path to the file (i.e. without the file: prefix) and it will automatically load the factory based on the extension of the configuration file:

-Dlog4j.configurationFile=/path/to/log4jconfig.{ext} 

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file .

please note that as of log4j2, the new system variable to use is log4j.configurationFile and you put in the actual path to the file (i.e., without the file: prefix) and it will automatically load the factory based on the extension of the configuration file:

-Dlog4j.configurationFile=/path/to/log4jconfig.{ext} 

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file .

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file .

please note that as of log4j2, the new system variable to use is log4j.configurationFile and you put in the actual path to the file (i.e., without the file: prefix) and it will automatically load the factory based on the extension of the configuration file:

-Dlog4j.configurationFile=/path/to/log4jconfig.{ext} 

As part of your jvm arguments you can set -Dlog4j.configuration=<FILE_PATH>configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file .

As part of your jvm arguments you can set -Dlog4j.configuration=<FILE_PATH>. Where FILE_PATH is the path of your log4j.properties file .

As part of your jvm arguments you can set -Dlog4j.configuration=file:"<FILE_PATH>". Where FILE_PATH is the path of your log4j.properties file .

added 2 characters in body
Source Link
Anubis05
  • 1.3k
  • 2
  • 13
  • 19
Loading
Source Link
Anubis05
  • 1.3k
  • 2
  • 13
  • 19
Loading