diff options
Diffstat (limited to 'botlogging.py')
| -rw-r--r-- | botlogging.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/botlogging.py b/botlogging.py deleted file mode 100644 index 6dc9d37..0000000 --- a/botlogging.py +++ /dev/null @@ -1,22 +0,0 @@ -import logging - - -fh = logging.FileHandler("logs/log.log") -fh.setLevel(logging.DEBUG) - -ch = logging.StreamHandler() -ch.setLevel(logging.DEBUG) - -log_format = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") -fh.setFormatter(log_format) -ch.setFormatter(log_format) - -logging.basicConfig( - level=logging.DEBUG, handlers=[fh, ch], - format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' -) - -logger = logging.getLogger(__name__) -logger.setLevel(logging.DEBUG) -logger.addHandler(fh) -logger.addHandler(ch)
\ No newline at end of file |