Questions tagged as 'log4j2'

1
answer

Log4j 2.x with multiple files depending on the level

I'm new to log4j. I want to create a different file for each log level (warn, error and etc). I have the following xml configuration file: <?xml version="1.0" encoding="UTF-8"?> <Configuration status="error" strict="true" na...
asked by 04.01.2016 / 19:34
0
answers

___ ___ erkimt error in the configuration log4j2.properties ______ qstntxt ___

My error:

%pre%

My log4j2.properties configuration file

%pre%

Statement:

%pre%

Validation:

%pre%

The console part is apparently ok. But no file is created

    
___

My error: 2018-02-02 03:31:07,300 main ERROR The parameter is null: fileName 2018-02-02 03:31:07,316 main ERROR Could not create plugin of type class org.apache.logging.log4j.core.appender.FileAppender for element File org.apache.logging.log4j...
asked by 01.02.2018 / 19:32
0
answers

LoggerFields for Syslog (write priority and stack trace)

Log4j can send logs to Papertrail using a syslog appender ( documentation ): log4j.appender.syslog=org.apache.log4j.net.SyslogAppender log4j.appender.syslog.Facility=LOCAL7 log4j.appender.syslog.FacilityPrinting=false log4j.appender.syslog.H...
asked by 14.05.2015 / 20:53
1
answer

How to configure Log4j2 with Spring Boot

Please note the structure of my project and try to see where my log4j2.xml file is Iconfiguredthisway; Now look at line 13 of the log4j2.xml file This line has the purpose that when the project does a database write it emits a SQL lo...
asked by 18.06.2017 / 15:09