290 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
137
views
Logstash Logback encoder unable to parse Spring WebClientResponseException due to cycle
I have some code making a remote call
try {
containerApi(tenant).updateContainerStorageUri(
tenant,
containerId,
...
0
votes
0
answers
75
views
logback auto-reload in spring environment after changing logback.xml stops file logging
When changing this logback.xml in spring boot 3 app the logging to files is stopped. For example if I change root level from INFO to TRACE. After change I can see in the stdout that logback has ...
0
votes
0
answers
25
views
Async Support for Access logs in logback
I am using ch.qos.logback for my spring boot application for logging.
For application logs i have support of appending the logs Asynchronously
ch.qos.logback.classic.AsyncAppender
but didn't find ...
1
vote
2
answers
438
views
Logging to the console can be slow [closed]
Google has some recommendations about logging in their blog page here:
Logging recommendations for containerized applications
Before we dive into some typical use cases for logging in GKE, let's ...
0
votes
0
answers
40
views
How to put archived logs into sub-directories which are created per month basis?
On a RHEL server, the service generates logs files in /home/jliu2/logs/, and archived logs are put into /home/jliu2/logs/archive/.
But I would not like to directly put archived logs under /home/jliu2/...
0
votes
0
answers
52
views
Logback File Appender in a Spring Boot Native Image
I am trying to configure logging into a file in a Spring Boot native image. According to this answer, Logback should be configurable with xml.
So I created the following logback-spring.xml file:
<?...
0
votes
0
answers
28
views
Include context line above and below the common frames after ommitting
I want to exclude common frames from my throwable logs. Instead of exclude all frames for a regex match I want to still keep 2 lines from above and below the common frame for context purpose.
I have ...
1
vote
1
answer
162
views
How to upper case custom field in logback
I am using logback with spring boot and I want to upper case a custom field that I get from spring property,
<springProperty name="foo" source="app.foo"/>
<...
0
votes
1
answer
516
views
Springboot with logback working, with log4j2 working, but not working when using both
I am observing an issue when sending logs to both log4j2 and logback using kafka.
Here is the code of my very simple Springboot app:
@SpringBootApplication
public class QuestionApplication {
...
3
votes
1
answer
170
views
logback - show only errors in catalina.out
I have this file logback-spring.xml:
<configuration>
<property name="DEV_HOME" value="./logs" />
<appender name="FILE-AUDIT" class="ch.qos....
1
vote
1
answer
735
views
Verbose Logback logging
We have updated one of our services to the latest spring version. Since then we have the following verbose logging
09:30:10,622 |-INFO in ch.qos.logback.classic.util.ContextInitializer@62fe6067 - Here ...
1
vote
1
answer
371
views
How to inherit application.yml from parent repo in Spring?
I have a parent repository called ParentA and a child repository called ChildA. ParentA has a few projects with one being ProjectA and in ProjectA/pom.xml there is a dependency for 'spring-boot-...
0
votes
1
answer
1k
views
Can't start spring boot application when logback-access.xml uses both TimeBasedRollingPolicy and SizeAndTimeBasedRollingPolicy
I have the following logback-access.xml file. My application is on jdk 21 and spring boot 3.3.4.
<configuration>
<appender name="ACCESS_FILE" class="ch.qos.logback.core....
0
votes
1
answer
195
views
How to configure spring-boot logback rollingpolicy
How do I set up application.yml for logging by day + hour? That is, I need the logs to be saved in a separate file every hour and stored in folders by day, with a storage depth of 7 days. As a result, ...
0
votes
0
answers
4k
views
Spring boot 3.3.2, java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter2
I've just updated my Spring Boot application to version 3.3.2 lts. But when I try to run it, I get the following stack error :
Exception in thread "main" java.lang.NoClassDefFoundError: ch/...