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.

Refactor astropy logger to conform to Python logging practice

See original GitHub issue

Proposed 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.”

https://github.com/astropy/astropy/blob/d971b1c48231d38665229d0d18b4245766b4b033/astropy/logger.py#L143

Perhaps tips from Python logging cookbook might help too.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pllimcommented, Sep 12, 2022

Logger was added here way back when Python 2.7 was the hot new thing. Probably not really adding any value by now?

1reaction
nstarmancommented, Sep 11, 2022

Would it be bad to instead deprecate the logger? One less thing to maintain…

Read more comments on GitHub >

github_iconTop 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 >

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