{ } Raw JSON

bundles / astropy latest / astropy / logger / AstropyLogger

class

astropy.logger:AstropyLogger

source: /astropy/logger.py :163

Signature

class   AstropyLogger ( name level = 0 )

Members

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