Most voted "log4j" questions
log4j is a software that provides an API for the developer to log
Learn more…19 questions
Sort by count of
-
6
votes1
answer1447
viewsDifferences between Log4j and SLF4J
What are the vantagens and desvantagens of each one? They can be usados simultaneamente in the same project?
-
5
votes1
answer606
viewsHow to configure Apache Log4j to write to the Bank through Hibernate?
I am starting to use Log4j from Apache and would like to know how to configure it by XML file to record the logs in the database using Hibernate?
-
5
votes1
answer1579
viewsProblem with log4j configuration
How do I configure the properties of log4j? In my application, I am receiving the following message: log4j:WARN No appenders could be found for logger (org.docx4j.jaxb.Context). log4j:WARN Please…
-
5
votes1
answer7203
viewsHow do I resolve the "No appenders could be found for logger" warning?
I am trying to configure Log4j in my project with JSF. I followed all the steps of a tutorial I found on Youtube. However, the following message is being sent: log4j:WARN No appenders could be found…
-
4
votes2
answers379
viewsTomcat only reads Log4j.properties when restarted
Until recently I made file changes log4j.properties (ex: change the level of the Testemb class) and simply redeploy the application. Now, the changes only take effect when I restart Tomcat. I wonder…
-
2
votes1
answer482
viewsconfigure SLF4J with log4j
I have a somewhat confused 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 seen that in the external…
-
2
votes1
answer3456
viewsHow to configure Log4j to generate a file in the WEB-INF folder with different dates?
I want to generate *.log or *.txt files with different dates (e.g., file-log-22-10-2015.log) within the WEB-INF folder of my Javaweb project I created the log4j.proprieties file as follows:…
-
2
votes0
answers89
viewsLog4j is not generating log backup
I have two jar on the same classpath, so they are using the same log4j.xml. The project in which the xml is, makes the roll correctly, but the other project does not. I configured the xml to…
-
1
votes1
answer783
viewsDelete log files with a date later than a week using log4j
In my application I use the log4j library to generate the logs of the whole system. It is working correctly, I use the following settings: Direct log messages to a log file…
-
1
votes0
answers67
viewsMonitoring the events of the JRE
Can you monitor some jre events like start, close etc? Are there libraries for that? I need to create a log to store the time the jre is triggered, closed and know who accessed, all this should be…
-
1
votes2
answers1058
viewsHow to generate log files with data log4j
Good afternoon to all, I am using log4j(log4j-1.2.17.jar) to generate the log of the system, however now I need to generate the log with date and make q it generates a log every day, I need the log…
-
1
votes1
answer123
viewsLog4j with multiple Jvms
Context In the project I am (production environment) has a server that is installed with 4 java applications, being: 1 application deployed Jetty 1 application in Tomcat 2 jar generated with Spring…
-
1
votes1
answer149
viewsConfiguration file
I have an app web (war) legacy where various environment settings are arranged in XML files, e.g.: the BD path is in the context.xml <Context path="/Base" reloadable="true"…
-
1
votes0
answers59
viewsLog4j in Tomcat application on AWS Beanstalk
I have a multi tenant application developed in Java WEB (Spring) that uses log4j to log logs. Each tenant saves their log files in a specific folder, corresponding to the tenant of the logged-in…
-
0
votes1
answer215
viewsHow to configure log4j in a java project that does not have the src folder?
I have a Java project that does not have the src(8z !) folder and I need to use log4j, I created the log4j.properties file and inserted it into the main package (com.meuproj.main), but the log file…
-
0
votes1
answer1055
viewsHow to configure Lo4j in a Spring Boot project
The goal of setting up log4j is to see the logs of selects that Hibernate does on the eclipse consoles. I already made configuration of Log4j in Spring MVC, but when I went to perform the same…
-
0
votes1
answer1045
viewsConfigure Log4j appender to display in the log console from Error and save in logs file from Info
Good evening, everyone. I need to display in the console only logs from Error and write to file logs from Info. I’ve tried using the additivity property for false, but when using it the appender…
-
0
votes0
answers70
viewsUpload.properties file
I’m having trouble reading a.properties. file.I created a separate class with a static method. However, it throws an exception and returns null. Follow my code below. public class LoadLog4jProperty…
-
-1
votes1
answer587
viewsException in thread "main" java.lang.Noclassdeffounderror: org/apache/logging/lo g4j/Logmanager
I am trying to start a jar file and as soon as I run, I get this error! You can help me? C:\Unky\Web\BloodStrikeServer-master>mvn clean package -Dmaven.test.skip=true 'mvn' não é reconhecido como…