[
https://issues.apache.org/jira/browse/LOG4J2-1499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nina Kumar updated LOG4J2-1499:
-------------------------------
Description:
App server - Weblogic 12c.
JDK-1.8
Servlet 3.0
deploy file - Enterprise Archive File (EAR)
We need log4j2.xml outside ear because we have to control log location and
level for different env.
1. Web.xml updated custom log4j2.xml (log4jConfiguration) outside ear but in
classpath. Logs are initialized but no jar classes in ear are logging except
classes in war module. Ear/lib jars classes are not logging.
2. I decided to set isLog4jAutoInitializationDisabled in web.xml so that I can
initialize it within application. But it is not working.
I expected log4j2 not initialize on start up. But log4j started up before
application gets started.
Logging is working only if I put Log4j2.xml(without lokens) in war
web-inf/classes.
was:
App server - Weblogic 12c.
JDK-1.8
Servlet 3.0
deploy file - Enterprise Archive File (EAR)
We need log4j2.xml outside ear because we have to control log location and
level for different env.
1. Web.xml updated custom log4j2.xml (log4jConfiguration) outside ear but in
classpath. Logs are initialized but no jar classes in ear are logging except
classes in war module. Ear/lib jars classes are not logging.
2. I decided to set isLog4jAutoInitializationDisabled in web.xml so that I can
initialize it within application. But it is not working.
I expected log4j2 not initialized on start up. But log4j start up before
application get started.
The only way log4j2 logging working to put a working (without tokens)
Log4j2.xml inwar web-inf/classes.
> Logging not working for EAR applications
> ----------------------------------------
>
> Key: LOG4J2-1499
> URL: https://issues.apache.org/jira/browse/LOG4J2-1499
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.6.2
> Reporter: Nina Kumar
>
> App server - Weblogic 12c.
> JDK-1.8
> Servlet 3.0
> deploy file - Enterprise Archive File (EAR)
> We need log4j2.xml outside ear because we have to control log location and
> level for different env.
> 1. Web.xml updated custom log4j2.xml (log4jConfiguration) outside ear but in
> classpath. Logs are initialized but no jar classes in ear are logging except
> classes in war module. Ear/lib jars classes are not logging.
> 2. I decided to set isLog4jAutoInitializationDisabled in web.xml so that I
> can initialize it within application. But it is not working.
> I expected log4j2 not initialize on start up. But log4j started up before
> application gets started.
> Logging is working only if I put Log4j2.xml(without lokens) in war
> web-inf/classes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]