API Reference for Enthought Tool Suite 2.7.1
Convenience functions for creating logging handlers etc.
Does a logging configuration file exist in the working directory?
CONFIG_FILE_EXISTS = os.path.exists('logging.cfg')
The default formatter.
FORMATTER = logging.Formatter('%(levelname)s|%(asctime)s|%(message)s')
The default logging level.
LEVEL = logging.DEBUG
fixme: This reference to the root logger needs to be removed. Instead, modules should use:-
import logging logger = logging.getLogger(__name__)
Obviously, this means changing practically every module in the library, so we won't remove it just yet ;^)
logger = logging.getLogger()
Adds a queueing log handler to a logger.
Creates a log file handler.
This is just a convenience function to make it easy to create the same kind of handlers across applications.
It sets the handler's formatter to the default formatter, and its logging level to the default logging level.
| Local name | Refers to |
|---|---|
| deprecated | enthought.util.deprecated.deprecated |
| fileConfig | logging.config.fileConfig |
| logging | logging |
| NullHandler | enthought.logger.null_handler.NullHandler |
| os | os |
| RotatingFileHandler | logging.handlers.RotatingFileHandler |
Copyright © 2002-2008 Enthought, Inc.