Only allow logging when wanted
See original GitHub issueI just started using this library (is awesome BTW), but I have a question, is there anyway to restrict the library from logging at all the events explained at the README.md
?
I wish to set the log at certain moments and not take into consideration those events specified by the documentation. Also this brings up to mind, if I should really use this extension or use pino
instead.
Also I wish to set different log files for each type logging level and also maintain a general log. (I’m new to logging but must do a hell of a good job)
What do you guys recommend ? (I’m using a hapi server … just to make sure its clear)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Python logging only log from script - Stack Overflow
So a better approach is to create a different logger only for your modules and give it some handlers of its own instead...
Read more >logging — Logging facility for Python — Python 3.11.1 ...
A common scenario is to attach handlers only to the root logger, and to let propagation take care of the rest. setLevel(level)¶. Sets...
Read more >Logging in Python - Real Python
The logging module provides you with a default logger that allows you to get started without needing to do much configuration. The corresponding...
Read more >Implement Log out Functionality and Only Allow ... - Egghead.io
You want to add a visual cue as well as a log out button to the nav. To accomplish this, you can check...
Read more >Application logging for security purposes - Bas Rijnbout
You should include just enough data in your security logs to allow you to detect suspicious actions. But logging too much details can...
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 Free
Top 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
@juanjoLenero 👍 , would you like to send a PR?
I could look into this if it’s still needed/wanted.
Maybe a plugin-level option:
logEvents
.Omitting any of the events would disable that specific log callback in hapi-pino.