Questions tagged as 'log4j'

1
answer

Configuration file

I have a legacy web (war) application where various environment settings are arranged in XML files, eg the DB path is in context.xml <Context path="/Base" reloadable="true" crossContext="true"> <Resource name="jdbc...
asked by 15.12.2016 / 02:34
2
answers

How to generate log files with data log4j

Good afternoon everyone, I'm using log4j (log4j-1.2.17.jar) to generate the system log, but now I need to generate the log with data and cause it to generate a log every day, I need the log to be generated like this " testLog-20-05-2016.log "...
asked by 20.05.2016 / 19:30
0
answers

Monitor JRE events

How to monitor some jre events like start, close etc? Are there any libraries for this? I need to create a log to store the time that jre is thrown, closed and know who accessed it, all this should be inside a txt file on the local machine, is t...
asked by 17.11.2014 / 14:57
1
answer

Configure Log4j's appender to display in the log console from Error and save to logs file from Info

Good evening guys. I need to display in the console only logs from Error and write to logs file from Info. I have tried to use the additivity property for false, but when I use it the appender stops working and I also tried using Stackover...
asked by 23.05.2017 / 03:28
1
answer

How to configure Lo4j in a Spring Boot project

The purpose of configuring log4j is to see the selects logs that Hibernate does on the eclipse consoles. I have already set up Log4j in Spring MVC, but when I went to do the same procedure in Spring Boot did not work. I did as follows;...
asked by 10.02.2017 / 16:08
0
answers

Log4j in Tomcat application on AWS Beanstalk

I have a multi tenant application developed in Java WEB (Spring) that uses log4j to register the logs. Each tenant writes its log files to a specific folder, corresponding to the user's tenant logged in. For this I use the following configuratio...
asked by 29.08.2018 / 02:46
1
answer

How 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 is not created when it generates the applicatio...
asked by 05.04.2017 / 15:05
1
answer

Exception in thread "main" java.lang.NoClassDefFoundError: org / apache / logging / lo g4j / LogManager

I'm trying to start a jar file and as soon as I run it, I get this error! Can you help me? C:\Unky\Web\BloodStrikeServer-master>mvn clean package -Dmaven.test.skip=true 'mvn' não é reconhecido como um comando interno ou externo, um progr...
asked by 29.07.2018 / 23:36