diff --git a/dist/Ragnar-1.3.37-py3-none-any.whl b/dist/Ragnar-1.3.37-py3-none-any.whl index 912d59c..ad9edf8 100644 Binary files a/dist/Ragnar-1.3.37-py3-none-any.whl and b/dist/Ragnar-1.3.37-py3-none-any.whl differ diff --git a/dist/ragnar-1.3.37.tar.gz b/dist/ragnar-1.3.37.tar.gz index 0068389..b54d826 100644 Binary files a/dist/ragnar-1.3.37.tar.gz and b/dist/ragnar-1.3.37.tar.gz differ diff --git a/logtest.py b/logtest.py index 1abb612..5691713 100644 --- a/logtest.py +++ b/logtest.py @@ -5,7 +5,7 @@ logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) # Set the logging level # Create a file handler -file_handler = logging.FileHandler('app.log') +file_handler = logging.FileHandler("app.log") file_handler.setLevel(logging.DEBUG) # Set the level for this handler # Create a console handler (optional, for logging to the console too) @@ -13,7 +13,7 @@ console_handler = logging.StreamHandler() console_handler.setLevel(logging.INFO) # Create a logging format -formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') +formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") file_handler.setFormatter(formatter) console_handler.setFormatter(formatter) diff --git a/ragnar.log b/ragnar.log index 96a4566..4fe8cbf 100644 --- a/ragnar.log +++ b/ragnar.log @@ -2,3 +2,7 @@ 2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger \([+,(,0-9,),-]{7,} matched! 2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! 2024-12-17 12:05:06,648 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! +2024-12-17 12:10:01,169 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! +2024-12-17 12:10:01,169 - ragnar - INFO - Regex trigger \([+,(,0-9,),-]{7,} matched! +2024-12-17 12:10:01,169 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! +2024-12-17 12:10:01,170 - ragnar - INFO - Regex trigger ([\w\d]\.[\w\d]{2,5}\/[\w\d]+|http|www) matched! diff --git a/src/ragnar/__init__.py b/src/ragnar/__init__.py index 94744f8..729971d 100644 --- a/src/ragnar/__init__.py +++ b/src/ragnar/__init__.py @@ -1,8 +1,7 @@ import logging import sys - -file_handler = logging.FileHandler('ragnar.log') +file_handler = logging.FileHandler("ragnar.log") file_handler.setLevel(logging.DEBUG) logging.basicConfig(