Questions tagged [logback-classic]
119 questions
0
votes
0 answers
Logback not working with Spring Boot and Tomcat
I am trying to set up a Spring Boot application on a Tomcat server, but I am running into issues. I keep getting the following error:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger…

Mark
- 65
- 1
- 6
0
votes
0 answers
Spring Boot Loading Logging classes in different order
Im not sure how many of you are familiar with this, but running the same application in two different environments is causing my spring boot app to load its logging dependencies in a different order. Im running with logback-classic-1.1.7 as well as …

Josh
- 115
- 1
- 15
0
votes
3 answers
How to enable logback to rotate the log files every x minutes/5 minutes/30 minutes?
I know that logback.xml easily provides for rotation of my logs daily, or hourly, or weekly.
How do I configure the timestamp in fileNamePattern so as to rotate my logs every half hour or 'x' minutes?
Or is there a code-level change that is required…

Yash Jaiswal
- 17
- 1
- 7
0
votes
2 answers
toString in logback
I am using logback in our project. I have gone through the links for logback for curly braces.
logger.debug(" My class output value - {}, object toString() {}", object.value(), object.toString());
Debug is not enabled in my project. We saw the…

Shriram
- 4,343
- 8
- 37
- 64
0
votes
0 answers
Can we edit the logger name before using it in encoder pattern of an appender in a logback
I am using a sifting appender where sometimes my logger name can have a string appended with a special string at the end. So for example, my logger name could either be:
com.test.example OR
com.test.example.#SPECIAL#
The logger will only follow…

1Mojojojo1
- 163
- 1
- 2
- 12
0
votes
2 answers
Logback - Print classname
I am using logback but,
rather than having the logger class called directly,
I would like to have a custom class/wrapper class which logs the data.
(This is required by the usecase).
I would like to print the source class names which are calling…

oxygenan
- 1,023
- 2
- 12
- 21
0
votes
1 answer
How to implement different logger pattern for specific class and methods using logback in java class?
basic aop code
@Aspect
public class LoggingAspect {
private Logger logger ;
@Before("execution(* *(..)) && !execution(* com.*model*.*(..))")
public void logBefore(JoinPoint joinPoint) {
logger =…

Ashok Kumar N
- 573
- 6
- 23
0
votes
1 answer
logback. class not found exception
I am trying to add a DB appender into my logback configuration.
Here is the part of the logback.xml file related to the issue:

Vittori0
- 117
- 3
- 10
0
votes
1 answer
IBM WAS server log file location from Spring application code
How to get the log location from spring application code. I am implementing the logging functionality for Spring web service using logback-classic. In the logback.xml, i need to mention the location where my custom log file has to be created. I used…

Mohan
- 699
- 1
- 11
- 27
0
votes
1 answer
Spring-boot Events Missing Using Logback ServerSocketReceiver
Symptom: spring-boot basic app (no web, no jpa, no addons) defines a receiver in logback-spring.xml, but remote appender events never reach the local appenders.
logback-spring.xml:
user3850380
0
votes
1 answer
Tomcat logback console appender follows ROOT level only and not named appenders
I use Tomcat with Eclipse. I recently upgraded to Neon and also recreated my Tomcat server configuration in there. Since then, I have not been able to log my web application properly to the Eclipse console. Specifically, if I set an INFO level in my…

Erica Kane
- 3,137
- 26
- 36
0
votes
1 answer
Proguarding a Javafx application using slf4j logger
I previously built a Javafx application and successfully wrapped it with proguard, while using java.util.Logger. However, I need to switch from java.util.Logger to the Logger provided by slf4j and use qos-logback. When I use proguard on it, I run…

sbsatter
- 591
- 3
- 22
0
votes
1 answer
multiple bindings and mismatch version for slf4j
I am trying to use slf4j-api and log4j-over-slf4j, but I am running into following warnings
System.err: SLF4J: Class path contains multiple SLF4J bindings.
System.err: SLF4J: Found binding in…

yogsma
- 10,142
- 31
- 97
- 154
-1
votes
1 answer
Logback system property from command line
I am trying to -D the location of the logback.xml file on the java command line running on a windows machine:
PS C:\testexecclient> java -DpropertyFolder=c:\testexecclient -Dlogback.configurationFile=c:\testexecclient\logback.xml
-jar…

Walter Kelt
- 2,199
- 1
- 18
- 22