Refactor astropy logger to conform to Python logging practice
See original GitHub issueProposed by @saimn, “Yeah, I would keep only the colored formatter… Currently the logger
has very little use in Astropy. If we want to develop its use, we should make sure it works well with downstream packages, which IMO means ‘keep it simple’ and stick with standard logging
use.”
Perhaps tips from Python logging cookbook might help too.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python Logging Guide - Best Practices and Hands-on Examples
Line 1: import the logging module. Line 2: create a basicConf function and pass some arguments to create the log file. In this...
Read more >Full Changelog — Astropy v5.2
Parameters can have custom getter methods. Cosmological equality is refactored to check Parameters (and the name) A new method, is_equivalent , is added...
Read more >6 Python Logging Best Practices You Should Be Aware Of
Python is one of the most successful programming languages. In this article, we'll discuss the best practices for logging with Python.
Read more >Astropy.model 2DGaussian issue - python - Stack Overflow
I understand that the number of parameters cannot exceed the amount of data points there are but I'm uncertain whats causing it or...
Read more >astroquery Documentation
git clone https://github.com/astropy/astroquery.git ... Astroquery works with Python 2.7 and 3.4 or later. ... from astropy import 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
Logger was added here way back when Python 2.7 was the hot new thing. Probably not really adding any value by now?
Would it be bad to instead deprecate the logger? One less thing to maintain…