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

DataDog can't receive my log when using Agentless mode

I'm experiencing issues with DataDog not receiving my logs in Agentless mode. Despite following the official tutorial, the logs are not being sent directly to the DataDog server as intended. Could ...
Matthew Lee's user avatar
0 votes
0 answers
27 views

Problem for implement LogBack from with Java Args

I have been stuck for some time on a problem implementing my logback My configuration of my processing is as follows: I use a .ksh on a Linux machine, which takes as parameters some Java libraries ...
Sébastien AOURA's user avatar
0 votes
2 answers
23 views

Why does dnsjava requires slf4j and logback?

So I'm (trying) developing a kotlin console application, where the user can sign up with an email, and in order to validate this email I use dnsjava library, but that requires me to use the slf4j and ...
r0ck-b0tt0m's user avatar
-1 votes
0 answers
32 views

How to do structure logging in Spring Boot [closed]

I am working on a Spring Boot application, and I want to log the complete HTTP request and response in a structured JSON format. @Slf4j @Order(2) @Component public class ...
Shahid's user avatar
  • 9
0 votes
0 answers
27 views

Hibernate logging in code - SpringBoot 2.7.18 and Hibernate 5.6.15

I am trying to turn logging on (and off) within the code. I've done this in the past but have not been able to figure how to do it with Hibernate 5.6.15 and SpringBoot 2.7.18. The following correctly ...
Anne DiSciullo's user avatar
-1 votes
0 answers
26 views

TraceId Unique but SpanId Reused Across Steps

I'm working with Spring Boot and using Spring Cloud Sleuth for distributed tracing. I've encountered an issue where the traceId is unique for each request, but the spanId seems to be reused across ...
Anver's user avatar
  • 39
0 votes
0 answers
13 views

How to build logback-android as a jar file?

I downloaeded the source code of enter link description here and was able to build the project in Android Studio, but the output is .aar file. Is it possible to build a .jar file instead of .aar file, ...
DarkSoda's user avatar
0 votes
0 answers
20 views

Logback roll over log files based on size not working

I have below config and its rolling policy is working to keep the file to max of 5 files. But the triggering policy is getting triggered on random file sizes for rotation. Not rotating on the exact ...
user1253229's user avatar
0 votes
0 answers
24 views

Logback for specific class and file only

I want to use logback in Spring Boot application just for one specific class and to write to specific log file. I don't want logback to control my other app logging, because we have "out-of-the-...
firstChild's user avatar
0 votes
0 answers
16 views

Can `TimeBasedRollingPolicy` and `SizeBasedTriggeringPolicy` be used at the same time?

I found a logback tutorial with this code: To better understand these policies, let’s create an appender which makes use of a TimeBasedRollingPolicy and a SizeTriggeringPolicy: <appender name=&...
SageJustus's user avatar
  • 1,010
5 votes
0 answers
118 views

Unable to verify if logback is the sole logging implementation with jqassistant

I am trying to verify with jqassistant that we only implement logback (and slf4j) for logging. I'm using version: 2.4.0 and the analyze goal seems to be successful but it shouldn't be. For testing ...
Rensykes's user avatar
0 votes
1 answer
26 views

Logback: setting same variable multiple times

I was upgrading the versions of logback-core and logback-classic to 1.5.6 ( from 1.1.2 ), but now after upgrading I am facing the problem that my logfiles are not being created anymore. Our logback ...
prot_on's user avatar
-1 votes
0 answers
28 views

Logback not writing to the console and using older configuration

I had initially tried to add logs to a file but that didn't work and so I wanted to go back to logging to the console. But there are no logs being printed to the console. My logback file looks ...
optimistic-orange's user avatar
2 votes
2 answers
1k views

Spring Boot 3.3.2: java.lang.ClassNotFoundException: ch.qos.logback.core.util.StatusPrinter2

I have upgraded the Spring Boot version from 3.2.2 to 3.3.2. While running the application, I am facing this error given below : Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.util....
desi_stoic's user avatar
0 votes
1 answer
26 views

specify logback.xml custom location

I have 2 files: logback.xml and logback-local.xml I am trying to build war file based on logback-local.xml I am trying to use command with adding file location like this mvn clean package -DskipTests -...
Kirill Sazonov's user avatar
0 votes
1 answer
18 views

Tagging/log segregation | Need output of a value from a Logback marker without angular brackets?

In the below log statement, log_type is a marker but can the value be formatted to print it without the bracket since all markers have a single category as it is being used for segregation/...
snp's user avatar
  • 79
1 vote
2 answers
79 views

logback logger (1.5.0) with Eclipse 4.31 -> No SLF4J providers were found

I use eclipse 4.31 with slf4j.api 2.0.12 and ch.qos.logback.classic 1.5.0. But if i want to log something i get following: SLF4J(W): No SLF4J providers were found. SLF4J(W): Defaulting to no-operation ...
Holzmacher's user avatar
3 votes
0 answers
51 views

Java: How to disable logging for transitive dependencies but keep enabled for direct dependencies?

I am developing a Spring Boot application, where I will be using two dependencies - Direct Apache kafka-clients Another library that uses Apache kafka-clients internally I want to adjust the logging ...
Jignesh M. Khatri's user avatar
0 votes
0 answers
41 views

Logback creating .tmp files during rollover

I have spring boot app with springboot version - 2.7.18 which has logback version 1.2.12 Now I am facing issue with .tmp files getting created during daily rollover of files. Below is my logback.xml ...
NewBie's user avatar
  • 63
0 votes
1 answer
47 views

How to test that pattern of consoleAppender logback configuration is working using uint tests?

I am very new at logback. I am using logback.xml configuration in my project, that has consoleAppender that use som pattern like <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-...
Vitaly Gavrilchenko's user avatar
0 votes
0 answers
23 views

maxFileSize is not behaving as expected in SizeAndTimeBasedRollingPolicy in logback-1.5.6

I am trying to test the SizeAndTimeBasedRollingPolicy in Logback. The time-based rolling is working fine, but I'm having trouble with the size-based rolling. I expect the file to roll over when it ...
Neha's user avatar
  • 1
0 votes
0 answers
21 views

Sending Traceability Logs to a Different File Than the Default Keycloak Log File

Want to log some traces on a specific file with log rotation. <keycloak.version>21.1.1</keycloak.version> I created a class called TracabilityLogger that logs certain traces I retrieve ...
Nicolas Bourneuf's user avatar
0 votes
0 answers
41 views

Issue with asynchronous logging using Logback on Tomcat

I'm currently facing an issue with logging configuration in my Java web application deployed on Tomcat. I'm using Logback as the logging framework and have configured a ConsoleAppender with <...
pape ndongo's user avatar
0 votes
0 answers
27 views

How to print MDC attribute only if log level is ERROR in dropwizard java app

Idea is to print some context only if there is error logs & not on other log levels like info or trace since it is not useful. I tried using log filters but it didnt help. Reference - https://www....
Jackie Vaswani's user avatar
1 vote
0 answers
55 views

Can I disable default Marker Context (NoMarker) passed implicitly when using play.api.Logger and require a different MarkerContext is always provided?

I am trying to add a unique request id to logs for each request that is made to a rest api. For that I want to pass implicitly a MarkerContext to each logger method called. Currently the NoMarker ...
Stefan Stojkovski's user avatar
0 votes
1 answer
100 views

Masking Sensitive Data in Request Body

I'm working on implementing of lockback in a little spring project. When credentialDTO is passed in login end point, Spring generates a log line with apparent password. 2024-06-27 14:55:37,555 DEBUG [...
Samet Yıldız's user avatar
0 votes
0 answers
17 views

How to avoid logs duplication in a logger having several appenders?

I want to distribute logs to several files depending on a flag in the LoggingEvent. Let's say all log lines with the flag valued to "A", must go to A.log, those with value "B", ...
Mikaël Restoux's user avatar
0 votes
1 answer
122 views

How can I print the nano-seonds in Log Timestamp while logging in Spring Boot 3.3 & java 17 using logback or log4j?

I am trying to print nanosecond precision of the time stamp in the logs for my spring boot app. I am using logback 1.5.6 in Spring Boot 3.3 with Java 17. I looked for different approaches and that ...
Amar Chandu's user avatar
0 votes
1 answer
256 views

logback.xml or logback-spring.xml?

Hy, I work with various project using logback and springboot, and some use a logback.xml file , some use logback-spring.xml file. What is the difference between the 2 ? How to configure one being used ...
sab's user avatar
  • 4,902
1 vote
2 answers
84 views

How to use an external logback.xml

I need to log using an external logback.xml file. Note: I have a spring boot app. If I keep the logback.xml file inside src/main/resources then all works fine. But when I supply it like java -Dlogback....
h h's user avatar
  • 19
0 votes
1 answer
24 views

Caused By: java.lang.LinkageError: loader constraint violation: "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory

I have upgraded the logback-core and logback-classic jar from 1.0.11 version to the 1.3.12. My project also using logback-ext.spring-0.1.1 , which is causing the below issue while restarting the ...
Rauthan's user avatar
  • 61
0 votes
0 answers
19 views

How to setup DuplicateMessageFilter for a single appender

I have a situation where I only want to use the turbo filter DuplicateMessageFilter for a single appender. (among console and file, only for console). How can I set it up? I can only think of create a ...
user25506549's user avatar
0 votes
0 answers
34 views

How to configure programatically Logback in Groovy?

I have this Groovy Lockback configuration: /* * Copyright (c) Deutsche Post DHL */ package de.deutschepost.adm.logging import ch.qos.logback.classic.Logger import ch.qos.logback.classic....
Petr Kostroun's user avatar
-1 votes
2 answers
69 views

Add job id to each log message slf4j logback

This is a big web server that uses Logback for logging. I want to add an identifier for each web request (e.g., job id) and log messages with this job id according to the request that created it. This ...
JVic's user avatar
  • 171
2 votes
0 answers
32 views

syslog in logback + springboot doesnt't work for me

const Syslog = require('simple-syslog-server') ; // Create our syslog server with the given transport const options = {} ; const address = 'localhost' ; // Any const port = 514 ; const listen = {...
Kimin Lee's user avatar
2 votes
1 answer
115 views

Class '...TCPNetSyslogConfig' contains multiple setters for the same property 'facility'

I have logback configuration like this: <configuration> <appender name="SYSLOG-DEFAULT-APPENDER" class="com.papertrailapp.logback.Syslog4jAppender"> <...
gstackoverflow's user avatar
1 vote
1 answer
110 views

Why, when configuring Logback from XML, DriverManagerConnectionSource is not starting resulting in failed connections?

After upgrading to slf4j 2.0.13, logback 1.5.6 and logback-db 1.2.11.1, the XML configuration for logback that was previously just fine is failing. As near as I can tell, the framework is trying to ...
pojo-guy's user avatar
  • 969
0 votes
0 answers
22 views

How nested <if> works in Spring Boot Logstash?

regarding to the official documentation https://logback.qos.ch/codes.html#nested_if_element This example is no longer supported, as it has a element nested within <root level="INFO"> ...
Diego da Costa Porto's user avatar
0 votes
0 answers
39 views

How to control the cleaning of the mdc in Spring-Sleuth?

There is a core project that uses Spring-Sleuth. And there is logic in the AspectJ aspect, where some logic is asynchronously executed in CompletableFuture, including logging via Logback. And judging ...
user376237's user avatar
-1 votes
1 answer
87 views

LoggerContextListener order establishment no longer honored after upgrading to SLF4J v2/Logback

I am going to do my best to explain this but it is fairly complicated. I work on a project that wants people to be able to override logback.xml settings using a java profile and properties. For ...
JGleason's user avatar
  • 3,699
0 votes
1 answer
153 views

Wildfly 26 SpringBoot logging exception on deploy

I tried changging to org.jboss.logging as in this post and the error still displaying. I exclude Logback in my POM as you guys can see below POM <dependencies> <dependency> <...
Paulo's user avatar
  • 21
0 votes
1 answer
158 views

Logback Spring Boot configuration is not working on Azure

I have configured anonymizer for my logger: --> logback.xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <include resource="org/springframework/...
Volodymyr Burmus's user avatar
0 votes
0 answers
41 views

Logback file is Empty

I am using spring 3.1.11 and below logback maven dependencies. I tried lot of things but I am not getting any logs in my log file that is getting generated. <dependency> <groupId&...
Gautam Rathva's user avatar
0 votes
0 answers
36 views

Issue while logging MDC values with Jetty 12

We have a service A that initiates an API call to another service B. In response service B transfers zip file in chunk to service A. We have written a custom response listener which transfer chunk ...
Narhari Motivaras's user avatar
1 vote
0 answers
89 views

Which syslog RFCs syslog4j support?

I want to use logback syslog4j appender and interested if it supports RFC 5424 Based on http://www.syslog4j.org/ I see that syslog4j supports both: RFC 3164 and RFC 5424 Syslog4j provides client and ...
gstackoverflow's user avatar
0 votes
0 answers
46 views

Syslog doesn't accept syslog messages from application which use syslog4j logback appender

I try to create example. My java application will use syslog logback appender to write to syslog. I want to up syslog server on my local machine and receive message from application there. 1. Let' ...
gstackoverflow's user avatar
0 votes
0 answers
54 views

How to customize syslog message parameters in particular log call using logback syslog appender?

I've read this chapter: https://logback.qos.ch/manual/appenders.html#SyslogAppender And now I understand how to configure syslog logback appender: <?xml version="1.0" encoding="UTF-8&...
gstackoverflow's user avatar
0 votes
0 answers
28 views

Is there a way to add log.origin... in default Elastic as not nested?

I am trying to add log.origin values to my json when logging. I am using default Elastic encoder co.elastic.logging.logback.EcsEncoder. I've successfully added it using <includeCallerData>true&...
Fleky's user avatar
  • 11
5 votes
1 answer
200 views

Legacy vs canonical Logback configuration

When looking through Chapter 3 of the Logback manual, I've noticed that the configuration examples come in three varieties: Legacy, Canonical (1.3) and Tyler. The manual stays pretty much silent about ...
Alex Veleshko's user avatar
0 votes
1 answer
143 views

Spring boot 3 trace Id tracking issue

I'm new to logging in spring. I read some articles about sleuth being replaced in spring boot 3 for tracking trace id aswell as span id. I have configured a logback-spring.xml as provided added the ...
Nika Melashvili's user avatar

1
2 3 4 5
75