diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-05-04 14:33:34 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <glongwave@gmail.com> | 2017-05-22 01:54:51 +0000 |
commit | a7dbfa39fa8108a402a240ace1515000d12dd4b5 (patch) | |
tree | e3bd405d2ff8e47ecce54c40769cdcb4046e3e06 | |
parent | b3665b70a632759e8dbfa2a6238d139dc9f4f916 (diff) | |
download | oslo-log-a7dbfa39fa8108a402a240ace1515000d12dd4b5.tar.gz |
Remove deprecated module loggers
The class WritableLogger was deprecated since liberty, and it's not
used by other projects, just remove it.
Depends-On: If8adae9807387fd32bad9923f5c7dab769572035
Depends-On: I1709f8a3f3ec50567b7f6217c3c1a2a61eecae62
Change-Id: I1ebed0855c5f9f410d8f6fbd786ce5b3409d8eb6
-rw-r--r-- | oslo_log/loggers.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/oslo_log/loggers.py b/oslo_log/loggers.py deleted file mode 100644 index 9a779c8..0000000 --- a/oslo_log/loggers.py +++ /dev/null @@ -1,29 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -import logging - -from oslo_log import versionutils - - -@versionutils.deprecated( - versionutils.deprecated.LIBERTY, - remove_in=+1) -class WritableLogger(object): - """A thin wrapper that responds to `write` and logs.""" - - def __init__(self, logger, level=logging.INFO): - self.logger = logger - self.level = level - - def write(self, msg): - self.logger.log(self.level, msg.rstrip()) |