0

Can someone help me to set Configuration status from properties file.

Here i have tried as below in log4j2.xml and its writing in server log as ERROR Invalid status level specified

Configuration status="${bundle:Logger-application:status.level}"....

and i have a Logger-application.properties with the field status.level=debug

Thanks in advance...

Ranjit
  • 146
  • 1
  • 9
  • You might take a look at [configuration with properties](https://logging.apache.org/log4j/2.0/manual/configuration.html#Properties),[status messages](https://logging.apache.org/log4j/2.0/manual/configuration.html#StatusMessages) and [configuration syntax](https://logging.apache.org/log4j/2.0/manual/configuration.html#ConfigurationSyntax) – D.B. Aug 26 '17 at 02:42

1 Answers1

0

Here configured Configuration status properly through logger-application.properties but make sure log4j XML pointing to which properties file, if you have a duplicate copy of logger-application.properties inside configuration folder then it treats that as a priority, check your configuration and component level application properties.

Adeel
  • 2,901
  • 7
  • 24
  • 34
Ranjit
  • 146
  • 1
  • 9