Questions tagged [logback-classic]
119 questions
0
votes
1 answer
Logback filter doesn't filter out the desired class
I'm trying to filter out the class "net.schmizz.concurrent.Promise" from my Logback logging. I've tried two methods, neither of which works. My logback.xml looks like this:
…

Todd
- 2,829
- 5
- 34
- 56
0
votes
1 answer
Logback - compressing log lines before writing to file
I am not sure if it is possible to basically gzip the stream of log lines as they arrive at the logback appender, rather than compressing the file when we log-rotate. Is that at all possible, and if so, how to achieve that and is there a lot of…

Bober02
- 15,034
- 31
- 92
- 178
0
votes
1 answer
Compress log files when using SiftingAppender of Logback
I know it is possible to compress log files with FixedWindowRollingPolicy or TimeBasedRollingPolicy of the RollingFileAppender. However, I was wondering if compression is possible when using just a SiftingAppender. My current configuration is as…

chomprrr
- 406
- 4
- 15
0
votes
1 answer
Failed to read artifact descriptor for ch.qos.logback:logback-classic:jar:1.2.3
I am getting below error -
Failed to read artifact descriptor for ch.qos.logback:logback-classic:jar:1.2.3
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for ch.qos.logback:logback-classic:jar:1.2.3 at…

Ankita Chaturvedi
- 171
- 2
- 5
0
votes
2 answers
Logs getting merged when two logback.xml runs on Websphere server
The problem I'm facing is, I have an application which uses a jar file(jar1) containing the logback.xml(having destination folder for its log files) and another application also using a jar file(jar2) containing another logback.xml(having different…

Siddhanta Biswas
- 1
- 1
0
votes
1 answer
Configuring separate appenders for a library (or common jar)
I am developing a library for my clients and I also need some way to know how consumers are using the library and get information on its usage analytics. In my library, I want to use Logstash Appender such that if I am logging any metrics info, it…

qwerty120390
- 1
- 1
0
votes
1 answer
Logger is freezing during logger.info
My background job is (regularly) getting stuck when calling log.info(...) with Logback:
"pool-5-thread-1" #30 prio=5 os_prio=0 tid=0x00007f11c4ff2000 nid=0x100 waiting on condition [0x00007f11bd21a000]
java.lang.Thread.State: WAITING (parking)
…

Tom G
- 2,025
- 3
- 21
- 32
0
votes
2 answers
Logback is not working?? The JSON is not generated
I have these Maven dependency files:
org.slf4j
slf4j-api
1.7.25
ch.qos.logback
…

Sam boy
- 1
- 4
0
votes
1 answer
Logback - Different log file path base on the application profile
I am trying to use logback.xml for my project and for development i am using windows env and for deployment i am using unix env so i have created below xml file.
However when my application starts look like it's trying to validate the path…

Jigar Naik
- 1,946
- 5
- 29
- 60
0
votes
2 answers
Logback Logger has no Appenders
I have a Vaadin webapplikation using slf4 and logback. In which I am using a Console and a DBAppender. Everything works fine if I use the logging in a Testcase:
@Test
public void test() {
Logger logger= …

Tobias Nolte
- 103
- 2
- 12
0
votes
0 answers
Java Multiple SLF4J Binding - Project Use Also ch.qos.logback
I work on two projects:
1. first project:
org.abc
db-manager
18.11.1
jar
second project:
org.abc
data-fetcher
18.11.2
jar
both have these…

Sherein
- 947
- 1
- 11
- 23
0
votes
0 answers
Android app crashes with getMDCPropertyMap : NoClassDefFoundError
My android app has crashed with following stack for a certain user.
java.lang.NoClassDefFoundError:
at ch.qos.logback.classic.spi.LoggingEvent.getMDCPropertyMap (Unknown Source)
at…

Lahiru Chandima
- 22,324
- 22
- 103
- 179
0
votes
1 answer
Spring-boot with logback printing some system logs into Application log
I previously has issue,while application printing all logs in console.
Then after following some post I was able to print the logs into separate application log.
Now while restarting application server (IBM WAS 8.5) it is printing some SystemOut…

Monaj
- 245
- 3
- 15
0
votes
1 answer
RollingFileAppender not working when used inside SiftingAppender
I have the following logback setup

1Mojojojo1
- 163
- 1
- 2
- 12