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.

I didn’t come here to rant about your code but allow one question. Is it a security feature to not implement any logging for an application?

Just today I was analyzing your “JWT signature does not match locally computed signature…” exception in my application. Rather than poking around in an unfamiliar code basis I wanted to turn up the log level for the library first. When this yielded no results I cloned this repo and ran grep -ri log * which left me totally puzzled. Exclusions for commons-logging in the POM, ok, but Logback only in test scope? I’m confused.

Btw, DefaultJwtParser#parse(java.lang.String) is an enormous complexity monster of 200+ lines 😉

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lhazlewoodcommented, Oct 11, 2017

If we add logging, it will most definitely be SLF4J. That allows you to plug in any logging provider implementation you desire.

Thanks for the issue! We’ll keep this open to retain a log/list of the types of logging requested by the community until we’re ready to force a dependency on everyone.

1reaction
jansohncommented, Sep 27, 2017

Why not use SLF4J and let the users decide whether they want logging or not?

https://www.slf4j.org/faq.html#when

EDIT: How to correctly use it: https://www.slf4j.org/manual.html#libraries

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging HOWTO — Python 3.11.1 documentation
To log variable data, use a format string for the event description message and append the variable data as arguments. For example: import...
Read more >
Logging in Python - Real Python
In this article, you will learn why using this module is the best way to add logging to your application as well as...
Read more >
Logging in .NET Core and ASP.NET Core | Microsoft Learn
Learn how to use the logging framework provided by the Microsoft. ... CreateBuilder, add the Event Source provider to the app's logging ......
Read more >
Python Logging Basics - The Ultimate Guide To Logging
Python comes with a logging module in the standard library that can provide a flexible framework for emitting log messages from Python programs....
Read more >
Python Logging: In-Depth Tutorial - Toptal
The log formatter basically enriches a log message by adding context information to it. It can be useful to know when the log...
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