Questions tagged [Log4j] (16)

1
answer

Why when you run the application with log4j in the Docker and no messages are displayed in different format?

Normally apps get messages with level INFO in json format when run in a Docker container with the same level of INFO - you get the usual line. What could be the problem? Here he config file logger:Configuration: Appenders: Console: name: Console JsonLayout: complete: true compact: true eventEol: true target. SYSTEM_OU...
Laverne asked March 27th 20 at 13:11
0
answer

How to stop creating threads FileWatchdog?

In a separate installation of tomcat running java application When you call the FileWatchdog thread runs, which remains hanging after the completion of the method Of course, soon the app vyzhiraet all the threads which have Google said that this is a problem of interaction lo4j and tomcat, and this thread is responsible for...
casper71 asked March 12th 20 at 21:41
1
answer

Logging of test execution in a separate file?

Good afternoon. I can not understand how to configure log4j2 for the log output in a separate file for each test class. There log4j2, Google gave no results. The tests go on in parallel. Requires execution of each test class, recorded in a separate file. I will be happy to get any tip. Thank you.
Lyric.Langosh28 asked March 12th 20 at 08:51
2
answers

Utility to generate reports on the logs of Java applications

Friends, there is a Java application that writes a lot and often logs. Want to have the opportunity once a day (or at log rotation) to generate an html report where the group (including the number) incident exception, with stack trace and send it in the mail. Yes, send the message when each time the error using log4j, but ...
adella_Stark0 asked October 3rd 19 at 13:25
0
answer

Is it possible in log4j2 to replace time?

Hello, Is there a way to slip log4j2 your time, instead of the current. Ideally I would like something like LogManager.setTimeProvider(myTimeProvider); Thank you.
Davonte.Rodriguez asked September 27th 19 at 02:35
1
answer

Can Log4j in different files?

How to make each session created a separate file, the file name is the session id.
Wyman.Quigl asked September 24th 19 at 01:02
0
answer

How to configure logging?

Now configured so<!--Logging various metrics during operation of the system--> <appender name="metrics" class="org.apache.log4j.DailyRollingFileAppender"> <param name="Threshold" value="INFO"> <param name="File" value="${catalina.base}/logs/hepreg-metrics.log"> <layout class="org.apache.log4j....
Mable_Simonis63 asked September 15th 19 at 20:50
1
answer

How to configure log4j?

Good day! At the moment all I have is logged in varying degrees of importance in different files and at midnight I've found with the log archived. How to set it a miracle that the archived file is transferred to another separate folder...
Mable_Simonis63 asked September 15th 19 at 15:01
0
answer

Analogue log4j for Tomcat logs?

Good day! There is such a thing as a log4j - which copes with log rotation, and other things. BUT there is a small disadvantage - on the server these tomcatv 5 - 10 , so the configuration of logs in each Tomcat is no longer so great. Can someone tell me how can you get out to the entrance was a single file logging settings ...
Mable_Simonis63 asked September 13th 19 at 15:35
1
answer

Why not save the logs into a file log4j?

Created a MVC project in IDEA, connected through pom.xml log4j, dobavil simple lakierowanie but the file does not record:pom.xml: 4.0.0log4jteachlog4jteach1.0-SNAPSHOTlog4jlog4j1.2.17src/main/java/OrderLogic.class :public class OrderLogic{ private static final Logger log = Logger.getLogger(String.valueOf(OrderLogic.class))...
Maude asked September 11th 19 at 14:17