diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-17 03:24:58 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-17 03:24:58 +0300 |
commit | 2c25de11d1db0621a6d21a2f3d12245304bfdc31 (patch) | |
tree | d5ff5ab973c4c4e139467cfae818118223070356 /vk/utils/tracking/logger.py | |
parent | add the platform a user was "last seen" using (diff) | |
download | vk-scripts-2c25de11d1db0621a6d21a2f3d12245304bfdc31.tar.gz vk-scripts-2c25de11d1db0621a6d21a2f3d12245304bfdc31.zip |
make the status logger a database writer
Diffstat (limited to '')
-rw-r--r-- | vk/utils/tracking/db/writer/log.py (renamed from vk/utils/tracking/logger.py) | 8 |
1 files changed, 0 insertions, 8 deletions
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)) |