diff --git a/wakatime/__init__.py b/wakatime/__init__.py index 5e78568..a06c9ac 100644 --- a/wakatime/__init__.py +++ b/wakatime/__init__.py @@ -52,7 +52,7 @@ except: from .packages import tzlocal3 -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') class FileAction(argparse.Action): diff --git a/wakatime/log.py b/wakatime/log.py index 6d7acc2..88a21a7 100644 --- a/wakatime/log.py +++ b/wakatime/log.py @@ -73,7 +73,7 @@ def set_log_level(logger, args): def setup_logging(args, version): - logger = logging.getLogger() + logger = logging.getLogger('WakaTime') set_log_level(logger, args) if len(logger.handlers) > 0: formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z') diff --git a/wakatime/project.py b/wakatime/project.py index 88827be..56a8657 100644 --- a/wakatime/project.py +++ b/wakatime/project.py @@ -19,7 +19,7 @@ from .projects.subversion import Subversion from .projects.wakatime import WakaTime -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # List of plugin classes to find a project for the current file path. diff --git a/wakatime/projects/base.py b/wakatime/projects/base.py index aeafdf7..d1af823 100644 --- a/wakatime/projects/base.py +++ b/wakatime/projects/base.py @@ -13,7 +13,7 @@ import logging import os -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') class BaseProject(object): diff --git a/wakatime/projects/git.py b/wakatime/projects/git.py index c8539a6..79c925a 100644 --- a/wakatime/projects/git.py +++ b/wakatime/projects/git.py @@ -15,7 +15,7 @@ import os from .base import BaseProject -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # str is unicode in Python3 diff --git a/wakatime/projects/mercurial.py b/wakatime/projects/mercurial.py index f91ab71..afaac95 100644 --- a/wakatime/projects/mercurial.py +++ b/wakatime/projects/mercurial.py @@ -15,7 +15,7 @@ import os from .base import BaseProject -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # str is unicode in Python3 diff --git a/wakatime/projects/projectmap.py b/wakatime/projects/projectmap.py index ea5ceff..9a4a73e 100644 --- a/wakatime/projects/projectmap.py +++ b/wakatime/projects/projectmap.py @@ -26,7 +26,7 @@ import os from .base import BaseProject -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # str is unicode in Python3 diff --git a/wakatime/projects/subversion.py b/wakatime/projects/subversion.py index 9a4c205..5a5551e 100644 --- a/wakatime/projects/subversion.py +++ b/wakatime/projects/subversion.py @@ -21,7 +21,7 @@ except ImportError: from ..packages.ordereddict import OrderedDict -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # str is unicode in Python3 diff --git a/wakatime/projects/wakatime.py b/wakatime/projects/wakatime.py index 6eea2a7..14ebe4f 100644 --- a/wakatime/projects/wakatime.py +++ b/wakatime/projects/wakatime.py @@ -17,7 +17,7 @@ import os from .base import BaseProject -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # str is unicode in Python3 diff --git a/wakatime/queue.py b/wakatime/queue.py index c253540..81ee2fc 100644 --- a/wakatime/queue.py +++ b/wakatime/queue.py @@ -22,7 +22,7 @@ except ImportError: HAS_SQL = False -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') class Queue(object): diff --git a/wakatime/stats.py b/wakatime/stats.py index 4c0e168..508a7a2 100644 --- a/wakatime/stats.py +++ b/wakatime/stats.py @@ -20,7 +20,7 @@ else: from pygments.lexers import guess_lexer_for_filename -log = logging.getLogger(__name__) +log = logging.getLogger('WakaTime') # force file name extensions to be recognized as a certain language