diff --git a/apptools/logger/api.py b/apptools/logger/api.py index 603c6d971..4e2093320 100644 --- a/apptools/logger/api.py +++ b/apptools/logger/api.py @@ -2,4 +2,3 @@ from .logger import FORMATTER, LEVEL, LogFileHandler from .log_point import log_point from .filtering_handler import FilteringHandler -from .null_handler import NullHandler diff --git a/apptools/logger/null_handler.py b/apptools/logger/null_handler.py deleted file mode 100644 index 14241b42a..000000000 --- a/apptools/logger/null_handler.py +++ /dev/null @@ -1,39 +0,0 @@ -# ------------------------------------------------------------------------------ -# Copyright (c) 2005, Enthought, Inc. -# All rights reserved. -# -# This software is provided without warranty under the terms of the BSD -# license included in enthought/LICENSE.txt and may be redistributed only -# under the conditions described in the aforementioned license. The license -# is also available online at http://www.enthought.com/licenses/BSD.txt -# Thanks for using Enthought open source! -# -# Author: Enthought, Inc. -# Description: -# ------------------------------------------------------------------------------ -""" A null log handler. """ - - -# Standard library imports. -import logging - - -class NullHandler(logging.Handler): - """A null log handler. - - This is a quick hack so that we can start to refactor the 'logger' - module since it used to add actual handlers at module load time. - - Now we only add this handler so that people using just the ETS library and - not one of our applications won't see the warning about 'no handlers'. - - """ - - ########################################################################### - # 'Handler' interface. - ########################################################################### - - def emit(self, record): - """ Emits a log record. """ - - pass diff --git a/docs/releases/upcoming/216.removal.rst b/docs/releases/upcoming/216.removal.rst new file mode 100644 index 000000000..19b0d26a4 --- /dev/null +++ b/docs/releases/upcoming/216.removal.rst @@ -0,0 +1 @@ +remove NullHandler from ``apptools.logger`` (#216) \ No newline at end of file