Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add deprecation warning to ColorHandler #1535

Merged
merged 4 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

## Upcoming deprecations for Kedro 0.19.0
* `kedro docs` will be removed in 0.19.0.
* `kedro.extras.ColorHandler` will be removed in 0.19.0.

# Release 0.18.0

Expand Down
8 changes: 8 additions & 0 deletions kedro/extras/logging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
"""
This module contains a logging handler class which produces coloured logs.
"""
import warnings

from .color_logger import ColorHandler

__all__ = ["ColorHandler"]

warnings.simplefilter("default", DeprecationWarning)

warnings.warn(
"Support for ColorHandler will be removed in Kedro 0.19.0.",
DeprecationWarning,
)