logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nina Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-1499) Logging not working for EAR applications
Date Thu, 04 Aug 2016 16:06:20 GMT

     [ 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 on application start but only classes in war are only getting logged not ear/lib
jars classes.

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)

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.




> 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 on application start but only classes in war are only getting logged
not ear/lib jars classes.
> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message