[ 
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)

ear
   lib
       jar1.jar
       jar2.jar
    war
       WEB-INF
           classes

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 have  set  isLog4jAutoInitializationDisabled in web.xml so that I can 
initialize log4j within application. But it is not working. 
I expected log4j2 not initialize on start up. But still 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 have  set  isLog4jAutoInitializationDisabled in web.xml so that I can 
initialize log4j within application. But it is not working. 
I expected log4j2 not initialize on start up. But still log4j started up before 
application gets started.
Logging is working only if I put Log4j2.xml(without lokens) in war  
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)
> ear
>    lib
>        jar1.jar
>        jar2.jar
>     war
>        WEB-INF
>            classes
> 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 have  set  isLog4jAutoInitializationDisabled in web.xml so that I can 
> initialize log4j within application. But it is not working. 
> I expected log4j2 not initialize on start up. But still 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]

Reply via email to