Questions tagged [slf4j-api]

53 questions
0
votes
0 answers

Migrating from log4j to slf4j

1)I am currently using log4j logging framework. Need to change it to slf4j.What is the procedure to change logging API in a Java project 2) In my application FATAL level was used. But in slf4j there is no FATAL level. In this place what can be done…
Vijay
  • 1
0
votes
0 answers

Upgrade Log4J Dependencies to latest(or recent versions) for Quartz Libraries

We are currently using Quartz libraries(version 2.3.0) to schedule some jobs to run on certain intervals according to our application needs. Our IT security team noticed that the application is currently using Log4j version 1.2.16 which is not…
Mahesh
  • 19
  • 1
  • 5
0
votes
0 answers

Debug logs are not printing for application level logs in root logback.xml configuration

I'm facing an issue with logback for slf4j-api 2.0+ versions, earlier it used to work when I set root logger level to "DEBUG" Later on, post upgradation to 2.0+ (with logback-classic-1.4.+) I'm unable to print debug statements using root…
0
votes
0 answers

MDC in custom log formatter using JBoss LogManager

Using JBoss LogManager, it is possible to format the logs. If i use for example the json log formatter, i get the following output, in which the mdc map contains my custom value: { "timestamp": "2018-10-18T13:53:43.031-04:00", "sequence":…
peer
  • 257
  • 2
  • 11
0
votes
0 answers

Class Not Found Exception after slf4j-log4j12 version upgrade to 1.7.36

After upgrading slf4j-log4j12 version, we are seeing below errors. Please let us know if anyone has faced the similar issues after upgrade. Appreciate the help! Error: log4j:ERROR Could not instantiate class [org.apache.log4j.ConsoleAppender]. …
Ankush D
  • 1
  • 1
0
votes
1 answer

ESAPI upgraded to 2.2.3.1- getting ClassNotFoundException and how to use slf4j instead of log4j1.x

HiAll, I upgraded ESAPI library to 2.2.3.1 version. And our application was using log4j 1.2.17 for logger. Since log4j.1X is depreciated in the latest versions, we Needed to use slf4j loggerfactory.So below are the changes gradle file - updated the…
Johny
  • 3
  • 1
  • 3
0
votes
1 answer

Logs are not getting generated with slf4j

I started facing issue since I have upgraded to 2.17.1 version , earlier my version was 2.1 and everything is working properly , since i have upgraded the version logs are not getting generated to log file I have following configuration in my…
0
votes
1 answer

How to use slf4j logger instead of builtin Liferay DXP 7.2 logger in mvc-portlet?

I can't figure out how to turn off the default logger and use slf4j instead of the default in Liferay DXP 7.2 mvc-portlet. A working example would be great. I have already tried: Implementing Logging How to disable XML Log Files in Liferay 7.x Using…
Greg
  • 163
  • 1
  • 2
  • 9
0
votes
1 answer

SLF4J: Class path contains multiple SLF4J bindings error using selenium-server

How to resolve the error Class path contains multiple SLF4J bindings while using selenium-server-4.0.0-alpha-5.jar and gerrit-acceptance-framework-3.1.4.jar Error stack trace: [RemoteTestNG] detected TestNG version 7.2.0 SLF4J: Class path contains…
0
votes
1 answer

How to log from an Akka-based library with a logging adapter provided by the host application?

I'm making a small library - a single Flow really - and would like to do some debugging logging from its code. The library is going to be used from both Log4J2 and Logback -based applications. I would like the logging to "just happen". What I've…
akauppi
  • 17,018
  • 15
  • 95
  • 120
0
votes
1 answer

Custom Level Logging in SLF4J

In my project logging is working perfectly fine. Using Slf4j for logging. Sample is as follows: import org.slf4j.LoggerFactory; import org.slf4j.Logger; public class MyClass{ private static Logger logger =…
Mark
  • 17
  • 9
0
votes
2 answers

Using Simple Logging Facade for Java n a SpringBoot app

I want to use the @Slf4j annotation, so I imported this dependency in my pom.xml file org.slf4j slf4j-api 1.7.29
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
0
votes
1 answer

How can I have logging in public shared library using slf4j?

I'm writing a public shared library and wanted to have slf4j logging to print some logs without depending specific implementation so that the users of the library can use their own logging framework. But I'm getting warning as "No slf4j provider…
Shiny
  • 161
  • 1
  • 1
  • 9
0
votes
1 answer

Velocity 2.0 Migration LogChute Replacement

I am trying to migrate to Velocity 2.0 from 1.7. After reading some of the documentation, I see that Velocity now has moved on to the SLF4j API for its logging. Now I am not a an expert on how to use SLF4j, but since it has some documentation, I am…
hell_storm2004
  • 1,401
  • 2
  • 33
  • 66
0
votes
1 answer

Appending tomcat logs to catalina.log stops, once user edits the log file

Tomcat 9 was appending it's logs to catalina.log fine. Since catalina.log contained too many content, for debugging my application, I wanted only fresh logs. So I deleted all lines from log file and saved it. But soon after that, tomcat stopped…
learner
  • 276
  • 1
  • 3
  • 16