79366302

Date: 2025-01-17 23:15:21
Score: 0.5
Natty:
Report link

why is there a compatibility issue?

Loki4j v1.6.0 requires Logback v1.4.x. If I remember correctly, ILoggingEvent.getNanoseconds() was introduced back in Logback v1.3.0. So your project is probably using Logback v1.2.3. That's why you have compatibility issue.

You can either force Maven to use Logback v1.4.x, or downgrade Loki4j to version that supports Logback v1.2.x (see compatibility matrix).

Also please note that recent versions of Loki4j support JSON layout natively, so you don't have to specify message pattern like this.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): why is the
  • Low reputation (0.5):
Posted by: nehaev