You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "lukaszspyra (via GitHub)" <gi...@apache.org> on 2023/07/17 05:19:00 UTC

Re: [I] No error emitted when using a YAML configuration without additional dependency (logging-log4j2)

lukaszspyra commented on issue #1501:
URL: https://github.com/apache/logging-log4j2/issues/1501#issuecomment-1637396149

   Hi @rgoers ,
   I've done some checks with a/m setup, and looks like there are StatusLogger messages for missing dependencies (DEBUG) and using default config (WARN), however it requires setting system property `log4j2.debug`:
   
   `
   DEBUG StatusLogger Missing dependencies for Yaml support, ConfigurationFactory org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory is inactive
   `
   `
   DEBUG StatusLogger Missing dependencies for Json support, ConfigurationFactory org.apache.logging.log4j.core.config.json.JsonConfigurationFactory is inactive
   `
   
   followed by:
   
   `WARN StatusLogger Found configuration file log4j2.yaml for inactive ConfigurationFactory org.apache.logging.log4j.core.config.yaml.YamlConfigurationFactory`
   `
   WARN StatusLogger No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically provided configurations. Set system property 'log4j2.debug' to show Log4j 2 internal initialization logging. See https://logging.apache.org/log4j/2.x/manual/configuration.html for instructions on how to configure Log4j 2
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org