[ 
https://issues.apache.org/jira/browse/LOG4J2-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sazerty closed LOG4J2-2835.
---------------------------
    Resolution: Abandoned

> External XML configuration override by configuration in JAR
> -----------------------------------------------------------
>
>                 Key: LOG4J2-2835
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2835
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: sazerty
>            Priority: Major
>
> Hi,
> I have an issue when I want to execute my application JAR with an external 
> XML file configuration. The external seems to be correctly loaded but after 
> parsing it, it stop.
> Here's the logs when I execute my jar with the following command : 
>  
> {code:java}
> java -jar -Dlog4j.debug -Dlog4j.configurationFile=log4j2-spring.xml 
> myapp-0.0-SNAPSHOT.jar{code}
> Here's the logs generated :
> {code:java}
> DEBUG StatusLogger Using ShutdownCallbackRegistry class 
> org.apache.logging.log4j.core.util.DefaultShutdownCallbackRegistry
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> DEBUG StatusLogger Took 0,084447 seconds to load 214 plugins from 
> sun.misc.Launcher$AppClassLoader@33909752
> DEBUG StatusLogger PluginManager 'Converter' found 47 plugins
> DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false-1
> DEBUG StatusLogger Starting LoggerContext[name=33909752, 
> org.apache.logging.log4j.core.LoggerContext@27d415d9]...
> DEBUG StatusLogger Reconfiguration started for context[name=33909752] at URI 
> null (org.apache.logging.log4j.core.LoggerContext@27d415d9) with optional 
> ClassLoader: null
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> DEBUG StatusLogger PluginManager 'ConfigurationFactory' found 5 plugins
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> DEBUG StatusLogger Using configurationFactory 
> org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@6483f5ae
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> DEBUG StatusLogger Closing FileInputStream java.io.FileInputStream@44f75083
> DEBUG StatusLogger Watching configuration '<PATH>\log4j2-spring.xml' for 
> lastModified Wed Apr 29 17:30:54 CEST 2020 (1588174254555)
> DEBUG StatusLogger Apache Log4j Core 2.12.1 initializing configuration 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml]
> DEBUG StatusLogger Installed 1 script engine
> DEBUG StatusLogger Oracle Nashorn version: 1.8.0_242, language: ECMAScript, 
> threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js, JS, 
> JavaScript, javascript, ECMAScript, ecmascript], factory class: 
> jdk.nashorn.api.scripting.NashornScriptEngineFactory
> DEBUG StatusLogger PluginManager 'Core' found 119 plugins
> DEBUG StatusLogger PluginManager 'Level' found 0 plugins
> DEBUG StatusLogger Building Plugin[name=property, 
> class=org.apache.logging.log4j.core.config.Property].
> TRACE StatusLogger TypeConverterRegistry initializing.
> DEBUG StatusLogger PluginManager 'TypeConverter' found 26 plugins
> DEBUG StatusLogger createProperty(name="log-path", value="logs")
> DEBUG StatusLogger Building Plugin[name=properties, 
> class=org.apache.logging.log4j.core.config.PropertiesPlugin].
> DEBUG StatusLogger configureSubstitutor(={log-path=logs}, 
> Configuration(<PATH>\log4j2-spring.xml))
> DEBUG StatusLogger PluginManager 'Lookup' found 13 plugins
> DEBUG StatusLogger Building Plugin[name=layout, 
> class=org.apache.logging.log4j.core.layout.PatternLayout].
> DEBUG StatusLogger PatternLayout$Builder(pattern="%m %X%n", 
> PatternSelector=null, Configuration(<PATH>\log4j2-spring.xml), Replace=null, 
> charset="null", alwaysWriteExceptions="null", disableAnsi="null", 
> noConsoleNoAnsi="null", header="null", footer="null")
> DEBUG StatusLogger PluginManager 'Converter' found 47 plugins
> DEBUG StatusLogger Building Plugin[name=appender, 
> class=org.apache.logging.log4j.core.appender.ConsoleAppender].
> DEBUG StatusLogger ConsoleAppender$Builder(target="SYSTEM_OUT", 
> follow="null", direct="null", bufferedIo="null", bufferSize="null", 
> immediateFlush="null", ignoreExceptions="null", PatternLayout(%m %X%n), 
> name="Console-Appender", Configuration(<PATH>\log4j2-spring.xml), 
> Filter=null, ={})
> DEBUG StatusLogger Starting OutputStreamManager SYSTEM_OUT.false.false
> DEBUG StatusLogger Building Plugin[name=layout, 
> class=co.elastic.logging.log4j2.EcsLayout].
> DEBUG StatusLogger EcsLayout$Builder(serviceName="myApp", 
> includeMarkers="null", stackTraceAsArray="null", ={}, topLevelLabels="null", 
> includeOrigin="true", charset="null", footerSerializer=null, 
> headerSerializer=null, Configuration(<PATH>\log4j2-spring.xml), 
> footer="null", header="null")
> DEBUG StatusLogger Building Plugin[name=appender, 
> class=org.apache.logging.log4j.core.appender.FileAppender].
> DEBUG StatusLogger FileAppender$Builder(fileName="logs/app.log", 
> append="null", locking="null", advertise="null", advertiseUri="null", 
> createOnDemand="null", filePermissions="null", fileOwner="null", 
> fileGroup="null", bufferedIo="null", bufferSize="null", 
> immediateFlush="null", ignoreExceptions="null", 
> EcsLayout(co.elastic.logging.log4j2.EcsLayout with name EcsLayout), 
> name="File-Appender", Configuration(<PATH>\log4j2-spring.xml), Filter=null, 
> ={})
> DEBUG StatusLogger Starting FileManager logs/app.log
> DEBUG StatusLogger Building Plugin[name=appenders, 
> class=org.apache.logging.log4j.core.config.AppendersPlugin].
> DEBUG StatusLogger createAppenders(={Console-Appender, File-Appender})
> DEBUG StatusLogger Building Plugin[name=AppenderRef, 
> class=org.apache.logging.log4j.core.config.AppenderRef].
> DEBUG StatusLogger createAppenderRef(ref="File-Appender", level="DEBUG", 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=logger, 
> class=org.apache.logging.log4j.core.config.LoggerConfig].
> DEBUG StatusLogger createLogger(additivity="true", level="DEBUG", 
> name="myApp", includeLocation="null", ={File-Appender}, ={}, 
> Configuration(<PATH>\log4j2-spring.xml), Filter=null)
> DEBUG StatusLogger Building Plugin[name=AppenderRef, 
> class=org.apache.logging.log4j.core.config.AppenderRef].
> DEBUG StatusLogger createAppenderRef(ref="Console-Appender", level="null", 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=root, 
> class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
> DEBUG StatusLogger createLogger(additivity="null", level="INFO", 
> includeLocation="null", ={Console-Appender}, ={}, 
> Configuration(<PATH>\log4j2-spring.xml), Filter=null)
> DEBUG StatusLogger Building Plugin[name=loggers, 
> class=org.apache.logging.log4j.core.config.LoggersPlugin].
> DEBUG StatusLogger createLoggers(={myApp, root})
> DEBUG StatusLogger Configuration 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml] initialized
> DEBUG StatusLogger Starting configuration 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml]
> DEBUG StatusLogger Log4j2 ConfigurationScheduler starting 1 threads
> DEBUG StatusLogger Started configuration 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml] OK.
> TRACE StatusLogger Stopping 
> org.apache.logging.log4j.core.config.DefaultConfiguration@52af6cff...
> TRACE StatusLogger DefaultConfiguration notified 1 ReliabilityStrategies that 
> config will be stopped.
> TRACE StatusLogger DefaultConfiguration stopping root LoggerConfig.
> TRACE StatusLogger DefaultConfiguration notifying ReliabilityStrategies that 
> appenders will be stopped.
> TRACE StatusLogger DefaultConfiguration stopping remaining Appenders.
> DEBUG StatusLogger Shutting down OutputStreamManager SYSTEM_OUT.false.false-1
> DEBUG StatusLogger Shut down OutputStreamManager SYSTEM_OUT.false.false-1, 
> all resources released: true
> DEBUG StatusLogger Appender DefaultConsole-1 stopped with status true
> TRACE StatusLogger DefaultConfiguration stopped 1 remaining Appenders.
> TRACE StatusLogger DefaultConfiguration cleaning Appenders from 1 
> LoggerConfigs.
> DEBUG StatusLogger Stopped 
> org.apache.logging.log4j.core.config.DefaultConfiguration@52af6cff OK
> TRACE StatusLogger Reregistering MBeans after reconfigure. 
> Selector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector@560348e6
> TRACE StatusLogger Reregistering context (1/1): '33909752' 
> org.apache.logging.log4j.core.LoggerContext@27d415d9
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=StatusLogger'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=ContextSelector'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=Loggers,name=*'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=Appenders,name=*'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=AsyncAppenders,name=*'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=AsyncLoggerRingBuffer'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=Loggers,name=*,subtype=RingBuffer'
> DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=33909752
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=StatusLogger
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=ContextSelector
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Loggers,name=
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Loggers,name=myApp
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Appenders,name=File-Appender
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Appenders,name=Console-Appender
> TRACE StatusLogger Using default SystemClock for timestamps.
> DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock does not 
> support precise timestamps.
> TRACE StatusLogger Using DummyNanoClock for nanosecond timestamps.
> DEBUG StatusLogger Reconfiguration complete for context[name=33909752] at URI 
> <PATH>\log4j2-spring.xml 
> (org.apache.logging.log4j.core.LoggerContext@27d415d9) with optional 
> ClassLoader: null
> DEBUG StatusLogger Shutdown hook enabled. Registering a new one.
> DEBUG StatusLogger LoggerContext[name=33909752, 
> org.apache.logging.log4j.core.LoggerContext@27d415d9] started OK.
> DEBUG StatusLogger Using configurationFactory 
> org.apache.logging.log4j.core.config.ConfigurationFactory$Factory@6483f5ae
> INFO StatusLogger Log4j appears to be running in a Servlet environment, but 
> there's no log4j-web module available. If you want better web container 
> support, please add the log4j-web JAR to your web archive or server lib 
> directory.
> DEBUG StatusLogger Closing JarURLInputStream 
> sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@19ae6bb
> INFO StatusLogger jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml 
> does not support dynamic reconfiguration
> DEBUG StatusLogger Loaded configuration from 
> jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml
> DEBUG StatusLogger Starting LoggerContext[name=33909752, 
> org.apache.logging.log4j.core.LoggerContext@27d415d9] with configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml]...
> DEBUG StatusLogger Apache Log4j Core 2.12.1 initializing configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml]
> DEBUG StatusLogger Installed 1 script engine
> DEBUG StatusLogger Oracle Nashorn version: 1.8.0_242, language: ECMAScript, 
> threading: Not Thread Safe, compile: true, names: [nashorn, Nashorn, js, JS, 
> JavaScript, javascript, ECMAScript, ecmascript], factory class: 
> jdk.nashorn.api.scripting.NashornScriptEngineFactory
> DEBUG StatusLogger PluginManager 'Core' found 119 plugins
> DEBUG StatusLogger PluginManager 'Level' found 0 plugins
> DEBUG StatusLogger Building Plugin[name=property, 
> class=org.apache.logging.log4j.core.config.Property].
> DEBUG StatusLogger createProperty(name="log-path", value="logs")
> DEBUG StatusLogger Building Plugin[name=properties, 
> class=org.apache.logging.log4j.core.config.PropertiesPlugin].
> DEBUG StatusLogger configureSubstitutor(={log-path=logs}, 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml))
> DEBUG StatusLogger PluginManager 'Lookup' found 13 plugins
> DEBUG StatusLogger Building Plugin[name=layout, 
> class=org.apache.logging.log4j.core.layout.PatternLayout].
> DEBUG StatusLogger PatternLayout$Builder(pattern="%m %X%n", 
> PatternSelector=null, 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> Replace=null, charset="null", alwaysWriteExceptions="null", 
> disableAnsi="null", noConsoleNoAnsi="null", header="null", footer="null")
> DEBUG StatusLogger PluginManager 'Converter' found 47 plugins
> DEBUG StatusLogger Building Plugin[name=appender, 
> class=org.apache.logging.log4j.core.appender.ConsoleAppender].
> DEBUG StatusLogger ConsoleAppender$Builder(target="SYSTEM_OUT", 
> follow="null", direct="null", bufferedIo="null", bufferSize="null", 
> immediateFlush="null", ignoreExceptions="null", PatternLayout(%m %X%n), 
> name="Console-Appender", 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> Filter=null, ={})
> DEBUG StatusLogger Building Plugin[name=layout, 
> class=co.elastic.logging.log4j2.EcsLayout].
> DEBUG StatusLogger EcsLayout$Builder(serviceName="myApp", 
> includeMarkers="null", stackTraceAsArray="null", ={}, topLevelLabels="null", 
> includeOrigin="true", charset="null", footerSerializer=null, 
> headerSerializer=null, 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> footer="null", header="null")
> DEBUG StatusLogger Building Plugin[name=appender, 
> class=org.apache.logging.log4j.core.appender.FileAppender].
> DEBUG StatusLogger FileAppender$Builder(fileName="logs/app.log", 
> append="null", locking="null", advertise="null", advertiseUri="null", 
> createOnDemand="null", filePermissions="null", fileOwner="null", 
> fileGroup="null", bufferedIo="null", bufferSize="null", 
> immediateFlush="null", ignoreExceptions="null", 
> EcsLayout(co.elastic.logging.log4j2.EcsLayout with name EcsLayout), 
> name="File-Appender", 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> Filter=null, ={})
> DEBUG StatusLogger Building Plugin[name=appenders, 
> class=org.apache.logging.log4j.core.config.AppendersPlugin].
> DEBUG StatusLogger createAppenders(={Console-Appender, File-Appender})
> DEBUG StatusLogger Building Plugin[name=AppenderRef, 
> class=org.apache.logging.log4j.core.config.AppenderRef].
> DEBUG StatusLogger createAppenderRef(ref="File-Appender", level="DEBUG", 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=logger, 
> class=org.apache.logging.log4j.core.config.LoggerConfig].
> DEBUG StatusLogger createLogger(additivity="true", level="DEBUG", 
> name="myApp", includeLocation="null", ={File-Appender}, ={}, 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=AppenderRef, 
> class=org.apache.logging.log4j.core.config.AppenderRef].
> DEBUG StatusLogger createAppenderRef(ref="Console-Appender", level="null", 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=root, 
> class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger].
> DEBUG StatusLogger createLogger(additivity="null", level="INFO", 
> includeLocation="null", ={Console-Appender}, ={}, 
> Configuration(jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml), 
> Filter=null)
> DEBUG StatusLogger Building Plugin[name=loggers, 
> class=org.apache.logging.log4j.core.config.LoggersPlugin].
> DEBUG StatusLogger createLoggers(={myApp, root})
> DEBUG StatusLogger Configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml]
>  initialized
> DEBUG StatusLogger Starting configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml]
> DEBUG StatusLogger Log4j2 ConfigurationScheduler starting 1 threads
> DEBUG StatusLogger Started configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml]
>  OK.
> TRACE StatusLogger Stopping 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml]...
> TRACE StatusLogger XmlConfiguration notified 3 ReliabilityStrategies that 
> config will be stopped.
> TRACE StatusLogger XmlConfiguration stopping 2 LoggerConfigs.
> TRACE StatusLogger XmlConfiguration stopping root LoggerConfig.
> TRACE StatusLogger XmlConfiguration notifying ReliabilityStrategies that 
> appenders will be stopped.
> TRACE StatusLogger XmlConfiguration stopping remaining Appenders.
> DEBUG StatusLogger Appender Console-Appender stopped with status true
> DEBUG StatusLogger Appender File-Appender stopped with status true
> TRACE StatusLogger XmlConfiguration stopped 2 remaining Appenders.
> TRACE StatusLogger XmlConfiguration cleaning Appenders from 3 LoggerConfigs.
> DEBUG StatusLogger Log4j2 ConfigurationScheduler shutting down threads in 
> java.util.concurrent.ScheduledThreadPoolExecutor@d8305c2[Running, pool size = 
> 1, active threads = 0, queued tasks = 1, completed tasks = 0]
> DEBUG StatusLogger Stopped 
> XmlConfiguration[location=<PATH>\log4j2-spring.xml] OK
> TRACE StatusLogger Reregistering MBeans after reconfigure. 
> Selector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector@560348e6
> TRACE StatusLogger Reregistering context (1/1): '33909752' 
> org.apache.logging.log4j.core.LoggerContext@27d415d9
> TRACE StatusLogger Unregistering 1 MBeans: 
> [org.apache.logging.log4j2:type=33909752]
> TRACE StatusLogger Unregistering 1 MBeans: 
> [org.apache.logging.log4j2:type=33909752,component=StatusLogger]
> TRACE StatusLogger Unregistering 1 MBeans: 
> [org.apache.logging.log4j2:type=33909752,component=ContextSelector]
> TRACE StatusLogger Unregistering 2 MBeans: 
> [org.apache.logging.log4j2:type=33909752,component=Loggers,name=myApp, 
> org.apache.logging.log4j2:type=33909752,component=Loggers,name=]
> TRACE StatusLogger Unregistering 2 MBeans: 
> [org.apache.logging.log4j2:type=33909752,component=Appenders,name=File-Appender,
>  
> org.apache.logging.log4j2:type=33909752,component=Appenders,name=Console-Appender]
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=AsyncAppenders,name=*'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=AsyncLoggerRingBuffer'
> TRACE StatusLogger Unregistering but no MBeans found matching 
> 'org.apache.logging.log4j2:type=33909752,component=Loggers,name=*,subtype=RingBuffer'
> DEBUG StatusLogger Registering MBean org.apache.logging.log4j2:type=33909752
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=StatusLogger
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=ContextSelector
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Loggers,name=
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Loggers,name=myApp
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Appenders,name=File-Appender
> DEBUG StatusLogger Registering MBean 
> org.apache.logging.log4j2:type=33909752,component=Appenders,name=Console-Appender
> TRACE StatusLogger Using DummyNanoClock for nanosecond timestamps.
> DEBUG StatusLogger LoggerContext[name=33909752, 
> org.apache.logging.log4j.core.LoggerContext@27d415d9] started OK with 
> configuration 
> XmlConfiguration[location=jar:file:/<PATH>/myapp-0.0-SNAPSHOT.jar!/log4j2-spring.xml].
> Starting myApp v0.0-SNAPSHOT on local with PID 82676 
> (<PATH>\myapp-0.0-SNAPSHOT.jar started by user in <PATH>) {}
> DEBUG StatusLogger AsyncLogger.ThreadNameStrategy=UNCACHED (user specified 
> null, default is UNCACHED)
> TRACE StatusLogger Using default SystemClock for timestamps.
> DEBUG StatusLogger org.apache.logging.log4j.core.util.SystemClock does not 
> support precise timestamps.
> Running with Spring Boot v2.2.4.RELEASE, Spring v5.2.3.RELEASE {}
> No active profile set, falling back to default profiles: default {}
> Bootstrapping Spring Data JPA repositories in DEFAULT mode. {}
> Finished Spring Data repository scanning in 87ms. Found 1 JPA repository 
> interfaces. {}
> Bean 
> 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration'
>  of type 
> [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Bean 
> 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration'
>  of type 
> [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Bean 'objectPostProcessor' of type 
> [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Bean 
> 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@92d1782'
>  of type 
> [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Bean 'myapp.security.access.MethodSecurityAutoConfiguration' of type 
> [myapp.commons.security.access.MethodSecurityAutoConfiguration$$EnhancerBySpringCGLIB$$83296917]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Bean 'methodSecurityMetadataSource' of type 
> [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource]
>  is not eligible for getting processed by all BeanPostProcessors (for 
> example: not eligible for auto-proxying) {}
> Tomcat initialized with port(s): 8081 (http) {}
> Initializing ProtocolHandler ["http-nio-8081"] {}
> Starting service [Tomcat] {}
> Starting Servlet engine: [Apache Tomcat/9.0.30] {}
> Initializing Spring embedded WebApplicationContext {}
> Root WebApplicationContext: initialization completed in 3355 ms {}
> Creating FilterRegistrationBean bean with TracingFilter mapped to [], skip 
> pattern is 
> "/api-docs.*|/swagger.*|.*\.png|.*\.css|.*\.js|.*\.html|/favicon.ico|/hystrix.stream|/actuator/(health|health/.*|info|info/.*)"
>  {}
> Web application fully configured {}
> HHH000204: Processing PersistenceUnitInfo [name: default] {}
> HHH000412: Hibernate Core {5.4.10.Final} {}
> HCANN000001: Hibernate Commons Annotations {5.1.0.Final} {}
> HikariPool-1 - Starting... {}
> HikariPool-1 - Start completed. {}
> HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect {}
> HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, 
> but CDI is available on the Hibernate ClassLoader. {}
> HHH000490: Using JtaPlatform implementation: 
> [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] {}
> Initialized JPA EntityManagerFactory for persistence unit 'default' {}
> Creating WebMvcConfigurer bean with class 
> io.opentracing.contrib.spring.web.interceptor.TracingHandlerInterceptor {}
> Initializing ExecutorService 'applicationTaskExecutor' {}
> Creating filter chain: Ant [pattern='/**', OPTIONS], [] {}
> Creating filter chain: Ant [pattern='/app/**/*.{js,html}'], [] {}
> Creating filter chain: Ant [pattern='/i18n/**'], [] {}
> Creating filter chain: Ant [pattern='/content/**'], [] {}
> Creating filter chain: Ant [pattern='/h2-console/**'], [] {}
> Creating filter chain: Ant [pattern='/swagger-ui/index.html'], [] {}
> Creating filter chain: Ant [pattern='/test/**'], [] {}
> Creating filter chain: any request, 
> [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@5ec06e97,
>  
> org.springframework.security.web.context.SecurityContextPersistenceFilter@31434b63,
>  org.springframework.security.web.header.HeaderWriterFilter@38d308e7, 
> org.springframework.security.web.authentication.logout.LogoutFilter@193f3306, 
> org.springframework.web.filter.CorsFilter@6ee5f485, 
> myapp.commons.security.jwt.JWTFilter@53c9541c, 
> org.springframework.security.web.authentication.www.BasicAuthenticationFilter@712c9bcf,
>  
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter@24558113,
>  
> org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@10230657,
>  
> org.springframework.security.web.authentication.AnonymousAuthenticationFilter@591febcb,
>  org.springframework.security.web.session.SessionManagementFilter@1a0b4955, 
> org.springframework.security.web.access.ExceptionTranslationFilter@17ebbf1e, 
> org.springframework.security.web.access.intercept.FilterSecurityInterceptor@3cd6d147]
>  {}
> Exposing 2 endpoint(s) beneath base path '/actuator' {}
> Starting ProtocolHandler ["http-nio-8081"] {}
> Tomcat started on port(s): 8081 (http) with context path '' {}
> Started myApp in 12.626 seconds (JVM running for 16.103) {}
> TRACE StatusLogger WatchRunnable run triggered.
> TRACE StatusLogger WatchRunnable run ended.
> {code}
> Here's my external XML configuration file :
> {code:java}
> <?xml version="1.0" encoding="UTF-8"?>
> <Configuration monitorInterval="60">
>     <Properties>
>         <Property name="log-path">logs</Property>
>     </Properties>    <Appenders>
>         <Console name="Console-Appender" target="SYSTEM_OUT">
>             <PatternLayout pattern="%m %X%n"/>
>         </Console>
>         <File name="File-Appender" fileName="${log-path}/app.log">
>             <EcsLayout serviceName="myApp" includeOrigin="true"/>
>         </File>
>     </Appenders>    <Loggers>
>         <Logger name="myApp" level="debug">
>             <AppenderRef ref="File-Appender" level="debug"/>
>         </Logger>
>         <Root level="info">
>             <AppenderRef ref="Console-Appender"/>
>         </Root>
>     </Loggers>
> </Configuration>
> {code}
> Thanks in advance,
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to