diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-10-15 20:08:19 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-10-15 20:08:19 +0400 |
| commit | dd177e3d2c4579bf435c1f583a1ceab3fb438791 (patch) | |
| tree | c721d654b78d504e88449d2b51f78ceb2eea2c3c /botlogging.py | |
| parent | 3562ed767dbddfbcac321c7006962e1283eb63af (diff) | |
move project files to src
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 |