Top "Slf4j" questions

Simple Logging Facade for Java (SLF4J) serves as a simple facade or abstraction layer for various logging frameworks.

Setting log level of message at runtime in slf4j

When using log4j, the Logger.log(Priority p, Object message) method is available and can be used to log …

java logging log4j slf4j
Mocking Logger and LoggerFactory with PowerMock and Mockito

I have the following Logger I want to mock out, but to validate log entries are getting called, not for …

java junit mockito slf4j powermock
Where does the slf4j log file get saved?

I have the followed imports: import org.slf4j.Logger; import org.slf4j.LoggerFactory; and the following instantiation: private …

java logging output slf4j bin
Logging framework incompatibility

I'm building a small Java app and hoping to use logback for logging. My app has a dependency on an …

java compatibility apache-commons slf4j logback
How to get SLF4J "Hello World" working with log4j?

The "Hello World" example from SLF4J is not working for me. I guess this is because I added slf4…

java logging log4j slf4j
java.lang.ClassNotFoundException: org.apache.log4j.Level

I'm trying to use hibernate 3.5.1 final in a swing application and here are the jars I'm using: hibernate-core-3.5.1-Final hibernate-entitymanager-3.5.1…

java hibernate exception log4j slf4j
Logger slf4j advantages of formatting with {} instead of string concatenation

Is there any advantage of using {} instead of string concatenation? An example from slf4j logger.debug("Temperature set to {}. …

optimization logging concatenation string-formatting slf4j
Logback to log different messages to two files

I am using logback/slf4j to do my logging. I want to parse my log file to analyze some …

java logging logback slf4j
How to enable debug in slf4j Logger?

How to globally enable debug for all the slf4j.Logger objects?

java logging slf4j
How do I configure Spring and SLF4J so that I can get logging?

I've got a maven & spring app that I want logging in. I'm keen to use SLF4J. I want …

java spring logging log4j slf4j