Questions tagged [logback-classic]
119 questions
1
vote
1 answer
Logback not logging for INFO and ERROR
I need to log info and error in separate files . I tried the below configuration. Though I got logs for CACHE-AUDIT and SERVICE_AUDIT, nothing gets printed for info and error log. Am i missing some configuration here.
logback.xml

Tiny
- 683
- 5
- 18
- 36
1
vote
1 answer
Adding Appender dynamically in logback
I have a logger instance coming from slf4j. This logger already logs to console.
I want to add an additional appender to it which will log to a file separately for each thread. So I want to use the SiftingAppender
I created the following utils class…

kosta
- 4,302
- 10
- 50
- 104
0
votes
0 answers
How can i solve this subject: Java LogBack Configuration is not working
I am using Logback logging library on Java. I prepared the logback.xml configuration, but it does not record to the target directory I specified. I share the configuration codes with you.

avcismail
- 31
- 6
0
votes
1 answer
mockito-inline causes logback classic to throw NullPointerException: Cannot read the array length because "throwableSuppressed" is null
Just switching from mockito-core to mockito-inline (4.11.0), without any code changes, causes logback-classic (1.2.11) to throw
Caused by: java.lang.NullPointerException: Cannot read the array length because "throwableSuppressed" is null
at…

dlipofsky
- 289
- 1
- 4
- 18
0
votes
0 answers
How to get war file to run with logback and TomEE 9.1.0
I'm updating TomEE to 8.0.14 to TomEE 9.1.0.
The war file uses logback as log system which worked fine with TomEE 8.0.14.
Now I get the war file to run but the logging is not working anymore in the expected behaviour.
In the /opt/tomee/lib directory…

Clueless
- 163
- 16
0
votes
0 answers
logback rolling policy is not rolling as expected
I have a basic spring boot application with the logback.xml below
mylog.txt

user1470509
- 91
- 1
- 4
0
votes
1 answer
Spring Boot service is not picking up the git.properties file generated by the gi-commit-id maven plugin
I have configured the git-commit-id plugin as follows:
io.github.git-commit-id
git-commit-id-maven-plugin
6.0.0
…

mal
- 3,022
- 5
- 32
- 62
0
votes
0 answers
Write log messages to respective files for parallel tasks
I am running some scripts in parallel (using Gradle's maxParallelForks to run multiple threads) and using Logback for the logging.
I want that each script should print their log message in the respective files which are created by their name and the…

mu1988
- 51
- 1
- 7
0
votes
0 answers
Java program hangs by logger write to STDOUT inside GKE pod
I'm facing a bug using the logback on GCP
we have 30 number java programs and which are same version code running inside the GKE pod, it is been observed the case around 12 number JVM hangs becomes unresponsive at the same time , but doesn't meet…

Kelly166
- 1
- 2
0
votes
0 answers
Problem while creating logs using logback.xml
Am using logback.xml to generate logs. Trying to delete the created log file >10 (will have 10 log files) and delete the oldest log file from server. Creating the log file for every min.
Below is the code snippet:
0
votes
0 answers
need to send each log lines into multiple encoders
I have a logback.xml which has the following lines.
this external encoder we dont have any…

hemanth
- 113
- 1
- 7
0
votes
0 answers
How To Provide Credentials To Google's LoggingAppender via logback.xml?
I have a logback.xml configuration with an appender like this:
myproject
…

Brian White
- 8,332
- 2
- 43
- 67
0
votes
0 answers
Logback is not writing to console under Weblogic 12c
Trying to get logback working in my application -- I have a resource adapter and an MDB deployed under Weblogic. I've swapped the application from using log4j to logback/slf4j.
Configuration files are placed under /src/main/resources (though I have…
0
votes
1 answer
How to resolve warning in logback debug mode when using a custom file appender linked with application properties
I have following logback configuration for spring boot. Whenever I add {PID: } in log-pattern: property of application.yml, I get the warning "No appenders present..." highlighted in the logs below. What causes this warning and how to fix it?
The…

Sidharth Bajpai
- 112
- 7
0
votes
0 answers
JAVA_TOOL_OPTIONS variables in Logback configuration
I have a small AWS Lambda function written in Java with a Logback attached to it for sending out error log emails. The variables needed for the Logback appender (basic SMTP details) are loaded into the Logback.xml configuration appender SMTPAppender…

BenK
- 1