From ee7123f38219c99f37c21e92b8cb96e014748b16 Mon Sep 17 00:00:00 2001 From: Stas Medvedev Date: Tue, 11 Jun 2024 01:24:14 +0300 Subject: utils.py, logging.py, log_config.json --- app/logging.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/logging.py (limited to 'app/logging.py') diff --git a/app/logging.py b/app/logging.py new file mode 100644 index 0000000..e24328d --- /dev/null +++ b/app/logging.py @@ -0,0 +1,9 @@ +import logging + + +class RequestFileHandler(logging.FileHandler): + def __init__(self) -> None: + super().__init__('./static/request.log') + + +logger = logging.getLogger('app.request') -- cgit v1.2.3