diff options
Diffstat (limited to 'vk')
-rw-r--r-- | vk/utils/tracking/__init__.py | 3 | ||||
-rw-r--r-- | vk/utils/tracking/db/writer/__init__.py | 2 | ||||
-rw-r--r-- | vk/utils/tracking/db/writer/log.py (renamed from vk/utils/tracking/logger.py) | 8 |
3 files changed, 2 insertions, 11 deletions
diff --git a/vk/utils/tracking/__init__.py b/vk/utils/tracking/__init__.py index 641d4c8..2e8b02e 100644 --- a/vk/utils/tracking/__init__.py +++ b/vk/utils/tracking/__init__.py @@ -2,7 +2,6 @@ # This file is licensed under the terms of the MIT License. # See LICENSE.txt for details. -from .logger import Logger from .status_tracker import StatusTracker -__all__ = 'logger', 'status_tracker', +__all__ = 'status_tracker', diff --git a/vk/utils/tracking/db/writer/__init__.py b/vk/utils/tracking/db/writer/__init__.py index 330d5a8..8eb62e1 100644 --- a/vk/utils/tracking/db/writer/__init__.py +++ b/vk/utils/tracking/db/writer/__init__.py @@ -2,4 +2,4 @@ # This file is licensed under the terms of the MIT License. # See LICENSE.txt for details. -__all__ = 'csv', +__all__ = 'csv', 'log' diff --git a/vk/utils/tracking/logger.py b/vk/utils/tracking/db/writer/log.py index 8da418a..02697b7 100644 --- a/vk/utils/tracking/logger.py +++ b/vk/utils/tracking/db/writer/log.py @@ -3,17 +3,9 @@ # See LICENSE.txt for details. import logging -import sys class Logger: @staticmethod - def set_up(fd=sys.stdout): - logging.basicConfig(format='[%(asctime)s] %(message)s', - stream=fd, - level=logging.INFO, - datefmt='%Y-%m-%d %H:%M:%S') - - @staticmethod def on_initial_status(user): if user.is_online(): logging.info(Logger._format_user_is_online(user)) |