Add logging
See original GitHub issueI 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:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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