Log4j2 — файл конфигурации создается, но не записывается ⇐ JAVA
Log4j2 — файл конфигурации создается, но не записывается
Java maven war project - when the application starts it should create file and write logs as per log4j2 configuration - here the file is getting created and log4j2 is also taking - but the logs are not getting written to new file. pom, log4j2 and web-deployement files are given below.
org.apache.ws.security wss4j 1.6.11 commons-logging commons-logging xml-resolver xml-resolver 1.2 org.apache.xmlbeans xmlbeans 2.6.0 mysql mysql-connector-java 8.0.19 xmlpull xmlpull 1.1.3.1 org.apache.xmlrpc xmlrpc-common 3.1.3 org.apache.ws.xmlschema xmlschema-core 2.0.3 org.apache.santuario xmlsec 1.5.5 commons-logging commons-logging org.opensaml xmltooling 1.3.2-1 xpp3 xpp3_min 1.1.4c com.sun.msv.datatype.xsd xsdlib 2010.1 com.thoughtworks.xstream xstream 1.4.4 org.springframework spring-aop 3.0.7.RELEASE org.springframework spring-core 3.0.7.RELEASE commons-logging commons-logging org.springframework spring-context 3.0.7.RELEASE org.springframework spring-expression 3.0.7.RELEASE org.springframework spring-jms 3.0.7.RELEASE org.springframework spring-tx 3.0.7.RELEASE org.slf4j slf4j-api 1.6.1 org.springframework spring-web 3.0.7.RELEASE org.springframework spring-webmvc 3.0.7.RELEASE org.apache.poi poi 3.11-beta2 org.apache.poi poi-ooxml 3.11-beta2 javax.xml.ws jaxws-api 2.3.1 jakarta.jws jakarta.jws-api 2.1.0 src src **/*.java resources **/*.java maven-compiler-plugin 3.5.1 1.8 1.8 org.apache.maven.plugins maven-war-plugin 3.0.0 ${project.basedir}/lib WEB-INF/lib ${project.basedir}/deployment WEB-INF org.sonarsource.scanner.maven sonar-maven-plugin 3.9.0.2155 Jboss-deployment.xml
Log4j2.xml
[VMS]::[VoMs]::[Instance1]::[%-5d{yyyy-MM-dd HH:mm:ss.SSS}]::[%t]::[]::[%X{transactionId}]::[%-5level]::[]::%F | %L | %m%n %m%n %m%n i change the log versions and tried with different dependencies also
Источник: https://stackoverflow.com/questions/781 ... ot-writing
Java maven war project - when the application starts it should create file and write logs as per log4j2 configuration - here the file is getting created and log4j2 is also taking - but the logs are not getting written to new file. pom, log4j2 and web-deployement files are given below.
org.apache.ws.security wss4j 1.6.11 commons-logging commons-logging xml-resolver xml-resolver 1.2 org.apache.xmlbeans xmlbeans 2.6.0 mysql mysql-connector-java 8.0.19 xmlpull xmlpull 1.1.3.1 org.apache.xmlrpc xmlrpc-common 3.1.3 org.apache.ws.xmlschema xmlschema-core 2.0.3 org.apache.santuario xmlsec 1.5.5 commons-logging commons-logging org.opensaml xmltooling 1.3.2-1 xpp3 xpp3_min 1.1.4c com.sun.msv.datatype.xsd xsdlib 2010.1 com.thoughtworks.xstream xstream 1.4.4 org.springframework spring-aop 3.0.7.RELEASE org.springframework spring-core 3.0.7.RELEASE commons-logging commons-logging org.springframework spring-context 3.0.7.RELEASE org.springframework spring-expression 3.0.7.RELEASE org.springframework spring-jms 3.0.7.RELEASE org.springframework spring-tx 3.0.7.RELEASE org.slf4j slf4j-api 1.6.1 org.springframework spring-web 3.0.7.RELEASE org.springframework spring-webmvc 3.0.7.RELEASE org.apache.poi poi 3.11-beta2 org.apache.poi poi-ooxml 3.11-beta2 javax.xml.ws jaxws-api 2.3.1 jakarta.jws jakarta.jws-api 2.1.0 src src **/*.java resources **/*.java maven-compiler-plugin 3.5.1 1.8 1.8 org.apache.maven.plugins maven-war-plugin 3.0.0 ${project.basedir}/lib WEB-INF/lib ${project.basedir}/deployment WEB-INF org.sonarsource.scanner.maven sonar-maven-plugin 3.9.0.2155 Jboss-deployment.xml
Log4j2.xml
[VMS]::[VoMs]::[Instance1]::[%-5d{yyyy-MM-dd HH:mm:ss.SSS}]::[%t]::[]::[%X{transactionId}]::[%-5level]::[]::%F | %L | %m%n %m%n %m%n i change the log versions and tried with different dependencies also
Источник: https://stackoverflow.com/questions/781 ... ot-writing
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
StreamWriter, похоже, не работает, текстовый файл не создается и не записывается
Anonymous » » в форуме C# - 0 Ответы
- 25 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Почему файл Serilog внезапно не записывается в файл, когда его размер достигает 1000 КБ?
Anonymous » » в форуме C# - 0 Ответы
- 16 Просмотры
-
Последнее сообщение Anonymous
-