custom logging level for numba internals.
See original GitHub issueNumba could do with a custom logging level to use internally so that developers of numba can switch on logging but it doesn’t impact consumers of numba with e.g. logging.DEBUG
enabled.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to add a custom loglevel to Python's logging facility
The new level needs to be added as an attribute to logging itself for consistency: logging.TRACE = logging.DEBUG - 5 . A method...
Read more >Logging Level Recommendations for the SSIS Catalog
Notice it's also possible to create your own custom logging levels, where you choose the events and statistics to be logged.
Read more >Python Logging Levels Explained - LogicMonitor
Python has six log levels with each one assigned a specific integer ... logging to a file is the ability to create a...
Read more >Python Logging: In-Depth Tutorial - Toptal
Python Logger · Propagate: Decides whether a log should be propagated to the logger's parent. By default, its value is True. · A...
Read more >Python Logging Guide - Best Practices and Hands-on Examples
So, an unnamed custom logging level with numeric value n appears as ... on cfg:// prefix to refer to objects internal to a...
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
I just stumbled over this issue and recalled there was a discussion about this on Gitter last year, so I thought I’d just cross link that here: https://gitter.im/numba/numba?at=5ed533094c9b0f060d39ada5
For what it’s worth: Personally I am not convinced that custom loglevels are the proper way to screen users of numba from log messages. To me, using the abilities of the logging module as suggested by @ugm2 or the filter suggested in the Gitter chat feel more like the solution intended by the devs of the logging module. I think custom levels should only be used if there is a feeling that numba itself needs more fine grain control over its own log messages.
Hi, I am having an issue with Numba for some time now. Whenever I run pytest and some test fails, Numba produces an unwieldy amount of logging information. Here is a tiny sample:
Is this related to this issue?