import logging

from sen.constants import FALLBACK_LOG_PATH

__version__ = "0.1"


def set_logging(name="sen", level=logging.DEBUG, path=FALLBACK_LOG_PATH):
    logger = logging.getLogger(name)
    logger.setLevel(level)

    handler = logging.FileHandler(path)
    handler.setLevel(logging.DEBUG)
    # handler = logging.StreamHandler(sys.stderr)

    formatter = logging.Formatter('%(asctime)s %(name)-18s %(levelname)-6s %(message)s',
                                  '%H:%M:%S')
    handler.setFormatter(formatter)
    logger.addHandler(handler)

@@ -376,16 +376,25 @@
 rmatter(
+%0A        
 '%25(ascti
@@ -401,19 +401,36 @@
 me)s
- %25(
+.%25(msecs).03d %25(file
 name)-1
-8
+7
 s %25(
@@ -460,42 +460,8 @@
 )s',
-%0A                                 
  '%25H

improve logging