Questions tagged [slf4j-api]

53 questions
0
votes
1 answer

where is logger.getAppender (migrating from log4j to slf4j+log4j)

Existing code is setting up logger programmatically. Thats how it does it public void init (String logFile, Logger logger){ Validate.isTrue(logger.getAppender(APPENDER_NAME) == null, "Logger has configured project appender"); //remaining…
Em Ae
  • 8,167
  • 27
  • 95
  • 162
0
votes
1 answer

Log4j prints error stacktrace on local but not on server

I have a Java application running on Amazon EC2 instance. And I am using Apache log4j logging framework to maintain ERROR as well as DEBUG logs for my application. But recently I'm not able to log error stack trace using logger.error(String Message,…
Parag Jadhav
  • 1,853
  • 2
  • 24
  • 41
0
votes
0 answers

log4j2 and logback dont work together

I want use struts 2.5 over logback but everything log to file only write to console of tomcat i used jar as below: struts 2.5.13 logback-core 1.2.3 logback-classic 1.2.3 log4j-api 2.9.1 log4j-to-slf4j 2.9.1 slf4j-api 1.7.25 Many thanks
amateur
  • 39
  • 1
  • 3
0
votes
1 answer

Where is the slf4j binding?

I want to configure logging correctly in my project and removed the omnipresent warning SLF4J: Found binding in…
Kalle Richter
  • 8,008
  • 26
  • 77
  • 177
0
votes
1 answer

SINGLE LINE of JAVA neuroph code is not working

I made a program that tries to use neuroph made neural network consisting of one line of code (beside imports, main etc.) NeuralNetwork nnet = NeuralNetwork.createFromFile('path here'); The first error I got was: Exception in thread "main"…
Bob
  • 1
0
votes
2 answers

grails run-war causing SLF4J: Class path contains multiple SLF4J bindings

I am using grails 2.4.2 version. When I run the command run-app then application runs fine, no error in Intellij console. When I run the command prod run-app, it also works fine without error. But when I run the command run-war then the following…
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
0
votes
2 answers

TYCHO maven build is including two differents org.slf4j.api versions

I'm using org.slf4j and ch.qos.logback to log my osgi application, designed and executed under eclipse equinox environnement. everything works well. The SLF4J plugin is declared once,in a feature file, as follow:
Bepeho
  • 85
  • 1
  • 8
-3
votes
2 answers

What is Simple Logging Facade for Java?

Im a newbie and while watching a youtube tutorial for recommender system, I came across SLFJ. What is it ?
Reshma Suresh
  • 165
  • 1
  • 4
  • 13
1 2 3
4