API Reference for Enthought Tool Suite 3.2.0

A log handler that allows filtering of messages by origin.

Example

from enthought.logger.api import DebugHandler, logger

handler = FilteringHandler(
    include = {
        'enthought.envisage.core' : True
    },

    exclude = {
        'enthought.envisage.core.application' : False
    }
)

logger.addHandler(handler)

Notes

The boolean value specified for each name in the include and exclude dictionaries indicates whether or not the include or exclude should pertain to any sub-packages and modules.

The above example includes all log messages from anything contained in, or under the 'enthought.envisage.core' package, EXCEPT for any log messages from the 'enthought.envisage.core.application' module.

Method summary

Methods

© Copyright 2002-2009 Enthought, Inc.