[ 
https://issues.apache.org/jira/browse/LOG4J2-3408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495092#comment-17495092
 ] 

Ralph Goers commented on LOG4J2-3408:
-------------------------------------

By default Log4j 2 expects to find its configuration file on the classpath. The 
META-INF directory is not on the classpath so the log4j2.xml in that directory 
will be ignored. 

I suggest you start up your JBoss instance with -Dlog4j2.debug=true until you 
get it working.

> Log4j2.17 not creating log file at the time of deployment
> ---------------------------------------------------------
>
>                 Key: LOG4J2-3408
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3408
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.17.1
>         Environment: JBOSS 7,
> Java 11
> Windows
>            Reporter: sengalvarayan
>            Priority: Major
>
> I am using EAR file, inside EAR FILE I have created lib folder and place 
> these two jars log4j-api-2.17.1.jar, log4j-core-2.17.1.jar  and inside 
> META-INF i have placed application.xml and log4j2.xml.
> the same setup working in 1.2.17 but not working in 2.17.1. Environmnet 
> Windowns and JBOSS7.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to