diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-17 03:12:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-06-17 03:12:51 +0300 |
commit | d0d1fca2ba5337095b953e0f83dba8cf7a2ec3a8 (patch) | |
tree | 84689152079e3160263ff65f10675166c118caf3 /vk/utils/tracking/logger.py | |
parent | refactoring & support more user fields (diff) | |
download | vk-scripts-d0d1fca2ba5337095b953e0f83dba8cf7a2ec3a8.tar.gz vk-scripts-d0d1fca2ba5337095b953e0f83dba8cf7a2ec3a8.zip |
add the platform a user was "last seen" using
Diffstat (limited to 'vk/utils/tracking/logger.py')
-rw-r--r-- | vk/utils/tracking/logger.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/vk/utils/tracking/logger.py b/vk/utils/tracking/logger.py index a36e679..8da418a 100644 --- a/vk/utils/tracking/logger.py +++ b/vk/utils/tracking/logger.py @@ -42,20 +42,23 @@ class Logger: @staticmethod def _format_user_is_online(user): - return '{} is ONLINE'.format(Logger._format_user(user)) + return '{} is ONLINE.'.format(Logger._format_user(user)) @staticmethod def _format_user_is_offline(user): - return '{} is OFFLINE'.format(Logger._format_user(user)) + return '{} is OFFLINE.'.format(Logger._format_user(user)) @staticmethod def _format_user_last_seen(user): - return '{} was last seen at {}'.format(Logger._format_user(user), user.get_last_seen_time_local()) + return '{} was last seen at {} using {}.'.format( + Logger._format_user(user), + user.get_last_seen_time_local(), + user.get_last_seen_platform().get_description_for_sentence()) @staticmethod def _format_user_went_online(user): - return '{} went ONLINE'.format(Logger._format_user(user)) + return '{} went ONLINE.'.format(Logger._format_user(user)) @staticmethod def _format_user_went_offline(user): - return '{} went OFFLINE'.format(Logger._format_user(user)) + return '{} went OFFLINE.'.format(Logger._format_user(user)) |