Questions tagged as 'log4j'

1
answer

Differences between Log4J and SLF4J

What are the vantagens and desvantagens of each? Can they be usados simultaneamente in the same project?     
asked by 23.04.2014 / 17:50
1
answer

Problem with log4j configuration

How do I configure log4j properties? In my application, I'm getting the following message:    log4j: WARN No appenders could be found for logger (org.docx4j.jaxb.Context).       log4j: WARN Please initialize the log4j system properly.      ...
asked by 12.08.2015 / 15:11
1
answer

How do I configure Apache Log4J to write to the Bank via Hibernate?

I'm starting to use Apache's Log4J and would like to know how to configure it by the XML file to write the logs to the bank using hibernate?     
asked by 26.08.2015 / 20:05
1
answer

How to resolve the "No appenders could be found for logger" warning?

I'm trying to set up Log4j in my project with JSF. I followed all the steps in a tutorial I found on Youtube . However, the following message is being posted: log4j:WARN No appenders could be found for logger (br.com.hidros.control.beans.Cont...
asked by 11.11.2015 / 18:00
2
answers

Tomcat only reads Log4J.properties when rebooted

Until recently I made changes to the log4j.properties ex file: change the level of the TestMB class) and just do the redeploy the application. Now, the changes only take effect when I restart Tomcat. What will happen? Log4j.properties...
asked by 20.01.2014 / 14:46
1
answer

How to configure Log4j to generate a file in the WEB-INF folder with different date?

I want to generate * .log or * .txt files with different dates (eg file-log-22-10-2015.log) inside the WEB-INF folder of my JavaWeb project. I created the log4j.proprieties file as follows : log4j.properties # Root logger option log4j.rootL...
asked by 27.08.2015 / 20:30
1
answer

configure SLF4J with log4j

I have a somewhat confusing problem but I will try to explain, I am working on a project that is using some external libraries, and I would like to implement a log, I have already seen that in the external packages they use the SLF4J package. So...
asked by 13.07.2015 / 16:02
0
answers

Log4j is not generating log backup

I have two jar in the same classpath, so they are using the same log4j.xml. The project in which xml is, does the roll correctly, but the other project does not. I have set up the xml to generate 10 backup of size 1096K, but the backups are n...
asked by 23.02.2016 / 19:03
1
answer

Erase log files dated after a week using log4j

In my application I use the log4j library to generate system-wide logs. It is working correctly, I use the following settings: Direct log messages to a log file log4j.appender.file = org.apache.log4j.DailyRollingFileAppender log4j.appender...
asked by 05.02.2014 / 14:42
1
answer

Log4J with multiple JVMs

Context In the project I am (production environment) has a server that is installed with 4 java applications, being: 1 deployed Jetty application 1 application in Tomcat 2 jar generated with Spring Boot framework All applications a...
asked by 21.06.2016 / 00:58