namespace logger to prevent conflicts with other plugins
This commit is contained in:
parent
c07bef55af
commit
e392ff6e77
11 changed files with 11 additions and 11 deletions
|
@ -52,7 +52,7 @@ except:
|
||||||
from .packages import tzlocal3
|
from .packages import tzlocal3
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class FileAction(argparse.Action):
|
class FileAction(argparse.Action):
|
||||||
|
|
|
@ -73,7 +73,7 @@ def set_log_level(logger, args):
|
||||||
|
|
||||||
|
|
||||||
def setup_logging(args, version):
|
def setup_logging(args, version):
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger('WakaTime')
|
||||||
set_log_level(logger, args)
|
set_log_level(logger, args)
|
||||||
if len(logger.handlers) > 0:
|
if len(logger.handlers) > 0:
|
||||||
formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z')
|
formatter = JsonFormatter(datefmt='%Y/%m/%d %H:%M:%S %z')
|
||||||
|
|
|
@ -19,7 +19,7 @@ from .projects.subversion import Subversion
|
||||||
from .projects.wakatime import WakaTime
|
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.
|
# List of plugin classes to find a project for the current file path.
|
||||||
|
|
|
@ -13,7 +13,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class BaseProject(object):
|
class BaseProject(object):
|
||||||
|
|
|
@ -15,7 +15,7 @@ import os
|
||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
|
|
@ -15,7 +15,7 @@ import os
|
||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
|
|
@ -26,7 +26,7 @@ import os
|
||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
|
|
@ -21,7 +21,7 @@ except ImportError:
|
||||||
from ..packages.ordereddict import OrderedDict
|
from ..packages.ordereddict import OrderedDict
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
|
|
@ -17,7 +17,7 @@ import os
|
||||||
from .base import BaseProject
|
from .base import BaseProject
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
# str is unicode in Python3
|
# str is unicode in Python3
|
||||||
|
|
|
@ -22,7 +22,7 @@ except ImportError:
|
||||||
HAS_SQL = False
|
HAS_SQL = False
|
||||||
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger('WakaTime')
|
||||||
|
|
||||||
|
|
||||||
class Queue(object):
|
class Queue(object):
|
||||||
|
|
|
@ -20,7 +20,7 @@ else:
|
||||||
from pygments.lexers import guess_lexer_for_filename
|
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
|
# force file name extensions to be recognized as a certain language
|
||||||
|
|
Loading…
Reference in a new issue