question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@Slf4j support reports an error

See original GitHub issue

Short description

i had to upgrade to intellij 2018.2, and i am using plugin version 0.19-LATEST-EAP-SNAPSHOT

I have a class annotated with @Slf4j annotation, and the following code: log.warn("Extra page of books of library {} genre {} author: {}", library, genre, author);

The IDE marks this line as error - Wrong 1st argument type - Found 'java.lang.string, required: ‘org.slf4j.marker…’

Expected behavior

Error should not appear.

Version information

No error

  • IDEA Version: Please provide full IntelliJ IDEA Version - available from About view intellij 2018.2
  • JDK Version: What is your JDK version, including update level?

java version “1.8.0_171” Java™ SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot™ 64-Bit Server VM (build 25.171-b11, mixed mode)

  • OS Type & Version: _Are you on Mac/Windows/Linux? mac
  • Lombok Plugin Version: What is the version of the plugin installed?`

0.19-LATEST-EAP-SNAPSHOT

  • Lombok Dependency Version: What version of lombok.jar are you using?

Lombok-1.16

Steps to reproduce

What steps do we need to take to reproduce this issue?

  1. ???
  2. ???
  3. ???

Sample project

Please provide a sample project that exhibits the problem. You should also include .idea folder so we can inspect the settings.

  • Sample project provided
  • I am able to reproduce this error on the sample project by following the steps described above

Additional information

Is there any additional information you can provide to help us understanding and solving the issue?

Stacktrace

If you are experiencing an issue and IntelliJ throws an error please provide the stacktrace.


STACKTRACE HERE (inside code markup)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sumitdangcommented, Nov 26, 2018

@Override public Optional<List<SamplePojo>> getSamplePojoByParam123(final String param1, final String param2, final String param3) { log.info(“Called - getSamplePojoByParam123({0}, {1}, {2})”, param1, param2, param3);

    log.info("Called - getSamplePojoByParam123({}, {}, {})", param1, param2, param3);

Here is the error - image

0reactions
Ghilterascommented, Jun 27, 2019

@mplushnikov I’m still experiencing this issue by the way, can we reopen it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SLF4J Error Codes
This warning message is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J ...
Read more >
SLF4J logs error messages at info level - java - Stack Overflow
Since it's not using that, it's dumping to the console, and GF reports everything on the console as INFO. So hook up the...
Read more >
SLF4J Error Codes
This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding ...
Read more >
aw-reporting configuration - log4j/slf4j errors - Google Groups
Hi,. The logging issues (1 and 2) should be non-fatal. Am I correct in assuming that the process continues after you see those...
Read more >
SLF4J ERROR MESSAGE - Java Development Tools (JDT)
I see, thanks. [Updated on: Tue, 12 April 2022 07:13]. Report message to a moderator ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found