Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
73 views

Is there a way to have a custom configuration when using Slf4j without the need to create a custom logger? Let's say I have a controller, service, or any format of a class, I am using SLF4J for ...
ctrleno's user avatar
0 votes
0 answers
73 views

I have a Spring Boot application with the following logback-spring.xml configuration. After startup, I notice that file logs (info.log and log.log) contain only minimal output, while the console ...
Tiina's user avatar
  • 4,869
3 votes
0 answers
172 views

I have my logback-spring.xml as follows: <?xml version="1.0" encoding="UTF-8"?> <configuration> <springProperty scope="context" name="...
Alfredo Morales's user avatar
0 votes
2 answers
341 views

I migrated my Spring Boot application from Logback to Log4j2, but the application is still printing logs using Logback. What I did so far: Added Log4j2 dependencies: org.springframework.boot ...
Ankit's user avatar
  • 603
0 votes
0 answers
43 views

I had been using log4j binding in cassandra version 4. But this isn't working in cassandra 5.0. Getting this exception on startup. org/apache/cassandra/utils/vint/VIntCoding.writeVInt32(ILorg/apache/...
Siva-ss18's user avatar
0 votes
1 answer
138 views

I'm logging with a Ktor server / logback config: <configuration> <conversionRule conversionWord="emoji" converterClass="foo.EmojiLevelConverter" /> <...
ixx's user avatar
  • 32.3k
3 votes
0 answers
113 views

In Spring Boot application for logs made with Slf4j I want to show INFO level logs in console and DEBUG level logs in file. I also want to change level logs in console with Actuator, so I can't use ...
Gosha Pronin's user avatar
0 votes
1 answer
35 views

How can I configure a custom Appender with android.content.Context parameter in the constructor like CustomAppender(android.content.Context context) in logback.xml, and how can I pass the Context ...
david liu's user avatar
0 votes
1 answer
71 views

I basically would like to have one file using install(Logging) { level = LogLevel.ALL } And another using install(Logging) { level = LogLevel.INFO } (everything else stays equal) My attempts:...
ixx's user avatar
  • 32.3k
0 votes
0 answers
73 views

I'm using Apache NiFi 2.4.0 and want to extend the default HTTP request logging (nifi-request.log) to include a custom attribute called logType with values like DATA_ACCESS, DATA_EXPORT, or ...
vigneshwar reddy's user avatar
1 vote
1 answer
472 views

I’m using Spring Boot 3.4 with structured logging (via JsonWriterStructuredLogFormatter), and I want to mask sensitive data such as passwords, API keys, and tokens from the message field in the logs. ...
Mehrdad Bozorgmehr's user avatar
1 vote
0 answers
48 views

My goal is to have per-request DEBUG level, I can set log level for rootLogger or any specific package (eg, com.example, org.springframework.web ...) to any level, through logback.xml or application....
whatspoppin's user avatar
0 votes
1 answer
260 views

The following is my logback-spring.xml configuration file: <?xml version="1.0" encoding="UTF-8"?> <configuration debug="false"> <springProperty scop=&...
user25422951's user avatar
0 votes
0 answers
62 views

PSI Probe creates new logback-x threads on each Threads tab access We have installed PSI Probe on a Tomcat server to monitor deployed applications. However, we’re encountering a recurring issue ...
404BrainNotFound's user avatar
5 votes
1 answer
246 views

My project uses SLF4J with Log4j2, but recently I introduced a dependency that uses Logback for logging and DOES NOT use SLF4J. The dependency's code includes the following import: import ch.qos....
chenlangping's user avatar
0 votes
0 answers
94 views

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 ...
knocker_d's user avatar
  • 616
0 votes
1 answer
68 views

We have an application using spring security, we need to enable debug logging due to a issue at customer site. The application is a war file deployed in tomcat, hosted in K8s on a container. We set up ...
user3652629's user avatar
0 votes
0 answers
41 views

When I use Spring Boot 2.1.14 and logback 1.2.9, I want logback version displayed on console, but it is null. This is my code Method 1 loggercontext.getProperty(logback.version) Method 2 On ...
zeng yang's user avatar
0 votes
0 answers
188 views

I'm encountering an error while building a GraalVM native image for a Spring Boot application in a multi-module setup. The error indicates that an object of type org.slf4j.helpers....
Max's user avatar
  • 11
-1 votes
1 answer
145 views

I use logback-classic in version 1.5.18 with slf4j 2.0.16 Here i have done a basic name for reproducing the issue (rolling doesn't work) public class LogRotationTest { public static void main(...
mlapeyre's user avatar
  • 330
1 vote
1 answer
189 views

I created a simple spring boot application and added a loki4j dependency to it to send logs to loki. Logs are displayed in loki, but this happens with a significant delay (on average 30 seconds). ...
R0n316's user avatar
  • 41
0 votes
1 answer
109 views

I have a SpringBoot service running in ECS with the awslogs driver. It is a pretty standard REST API. For each incoming request, it produces one log with some proprietary info about the request. ...
potato_programmer's user avatar
0 votes
0 answers
79 views

I am new to Loki and I am playing with a simple Spring Boot project and a docker-compose file, see here https://gitlab.com/kicktipp/lokilogging/ Everything works fine so far. But of course things fail,...
Janning Vygen's user avatar
0 votes
1 answer
112 views

I have this appender <appender name="CONSOLE_JSON" class="ch.qos.logback.core.ConsoleAppender"> <encoder class="net.logstash.logback.encoder.LogstashEncoder"&...
Fetona's user avatar
  • 54
0 votes
1 answer
129 views

Using Maven 3: jetty maven plugin - version 11.0.24, logback classic - version 1.4.14, jul-to-slf4j version 2.0.16 : public class MyLifecycleListener implements ServletContextListener { @Override ...
timmacp's user avatar
  • 193
1 vote
2 answers
505 views

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 ...
Abdullah Arslan's user avatar
1 vote
2 answers
67 views

I am trying to create a logging file for my Spring scheduler app, but logback keeps creating a new file every time the scheduler starts. I want a single file from the time when the scheduler starts to ...
user avatar
1 vote
1 answer
59 views

Full project on Github (check no-logs branch): https://github.com/BenVella/backend-java/tree/no-logs Problem: Running in docker-compose for rabbitmq and postgres. I'm not getting logs showing up for ...
Luponius's user avatar
  • 109
0 votes
1 answer
100 views

I'm developing a desktop application with Kotlin and when configuring the log I'm not able to write each log level in a different file. In the file build.gradle.kts I have added the dependencies: ...
MinionAttack's user avatar
3 votes
2 answers
1k views

When I set the following property, as described in Structured logging in Spring Boot 3.4, it works. logging: structured: format: console: ecs { "@timestamp":"2025-02-...
Jin Kwon's user avatar
  • 22.5k
0 votes
0 answers
114 views

I have the following Logging.groovy import ch.qos.logback.classic.Level import ch.qos.logback.classic.LoggerContext import ch.qos.logback.classic.encoder.PatternLayoutEncoder import ch.qos.logback....
djsumdog's user avatar
  • 2,838
2 votes
0 answers
520 views

I recently switched from using New Relic’s Java agent to OpenTelemetry (opentelemetry-javaagent.jar) to avoid vendor lock-in. In theory, OpenTelemetry should make it easier to migrate to another ...
PBA's user avatar
  • 435
1 vote
0 answers
271 views

I am developing a Keycloak SPI (Service Provider Interface) and need to log specific events to a different file using SLF4J markers. However, I am facing issues integrating Logback with Keycloak's ...
Anderson's user avatar
0 votes
0 answers
115 views

The goal is: Write only desired log level to the Console output by JVM args (-Dlog.level=DEBUG) (default INFO). (Not working) Write DEBUG level to ROLLING_FILE_DEBUG file appender. (Working fine) ...
Augusto's user avatar
  • 4,303
1 vote
1 answer
182 views

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"/> <...
Hayi's user avatar
  • 6,386
0 votes
0 answers
98 views

I got an OOM and watched into the heapdump with MAT for my java spring boot application. I found big threads consuming 250 MB due to holding a too big ch.qos.logback.classic.spi.LoggingEvent Class ...
timguy's user avatar
  • 2,712
0 votes
1 answer
270 views

I have an application in Java, Spring Boot and Logback, in the Logback file, as we can see below, part of OpenTelemetry is configured, I receive my logs in the OpenTelemetry collector and then export ...
user avatar
0 votes
0 answers
139 views

we have spring-boot Java based application. we are trying to integrate LOKI with application to have the logs in Grafana dashboard. getting below exception root@CSX-:/mnt/c/Automation/oe-platform/...
user2315104's user avatar
  • 2,914
0 votes
1 answer
267 views

We are using Loki4jAppender to log the streams in spring boot java application After resolving all dependency issue in maven POM.xml, getting below error root@CSX-:/mnt/c/Automation/oe-platform/...
user2315104's user avatar
  • 2,914
0 votes
1 answer
405 views

I'm new to Java and trying to set up Logback with a Spring Boot Java app. Getting this exception while using logback.xml with the Spring Boot Java application: Correct the classpath of your ...
user2315104's user avatar
  • 2,914
6 votes
5 answers
11k views

I recently update logback-classic and logback-core from version 1.5.8 to version 1.5.15 in order to fix some vulnerabilities. However, after doing that I couldn't start the application and I got the ...
Gustavo Cesário's user avatar
3 votes
0 answers
241 views

In Spring Boot 3.4, structured logging was introduced as a built-in feature. Is it possible to reduce the line length when using this feature with Logstash, especially for exceptions? For example, ...
Vegard's user avatar
  • 1,972
0 votes
1 answer
463 views

I am having trouble upgrading a repository from spring 2.7 to 3.X My app builds fine but when I go to launch it I get the same error message every time. I have tried adding, removing, updating various ...
EnigmaMachine1's user avatar
1 vote
1 answer
155 views

I'm trying to add Logback on a Vertx project, but it seems SLF4J can't see logback even if itself come from a logback dependency. I used maven dependency logback-classic, which transitively imports ...
Mickael Alvarez's user avatar
1 vote
0 answers
403 views

I have a log format where I would like to add an attribute with a code to represent that event - I only know the code before all operations. The example output could be: { "@timestamp": &...
dpcllalala's user avatar
1 vote
1 answer
420 views

I am trying to create a custom log format because my app was running into Wildfly and I have migrated it to SpringBoot. On Wildfly the application log was already in a JSON format but If I use a ...
dpcllalala's user avatar
0 votes
0 answers
89 views

If there's a custom Transaction Manager extending JpaTransactionManager, it seems impossible to suppress the DEBUG messages from these two classes. **org.springframework.transaction.support....
user3140698's user avatar
0 votes
1 answer
107 views

I've been trying to set an logback filter in my Eclipse Equinox RT application as follows: <?xml version="1.0" encoding="utf-8" standalone="no"?> <configuration ...
skrenato's user avatar
3 votes
1 answer
176 views

I have this file logback-spring.xml: <configuration> <property name="DEV_HOME" value="./logs" /> <appender name="FILE-AUDIT" class="ch.qos....
Nunyet Calçada's user avatar
1 vote
1 answer
819 views

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 ...
WalRitt's user avatar
  • 21

1
2 3 4 5
74