bundles / astropy 7.0.1 / astropy / logger / AstropyLogger
class
astropy.logger:AstropyLogger
source: /astropy/logger.py :163
Signature
class AstropyLogger ( name , level = 0 ) Members
-
_excepthook -
_set_defaults -
_showwarning -
disable_color -
disable_exception_logging -
disable_warnings_logging -
enable_color -
enable_exception_logging -
enable_warnings_logging -
exception_logging_enabled -
makeRecord -
warnings_logging_enabled
Summary
This class is used to set up the Astropy logging.
Extended Summary
The main functionality added by this class over the built-in logging.Logger class is the ability to keep track of the origin of the messages, the ability to enable logging of warnings.warn calls and exceptions, and the addition of colorized output and context managers to easily capture messages to a file or list.
Aliases
-
astropy.logger.AstropyLogger