Update export statistics
This commit is contained in:
parent
e8b0797ebe
commit
5d74e4f108
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/ragnar-1.3.37.tar.gz
vendored
BIN
dist/ragnar-1.3.37.tar.gz
vendored
Binary file not shown.
@ -5,7 +5,7 @@ logger = logging.getLogger(__name__)
|
|||||||
logger.setLevel(logging.DEBUG) # Set the logging level
|
logger.setLevel(logging.DEBUG) # Set the logging level
|
||||||
|
|
||||||
# Create a file handler
|
# 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
|
file_handler.setLevel(logging.DEBUG) # Set the level for this handler
|
||||||
|
|
||||||
# Create a console handler (optional, for logging to the console too)
|
# Create a console handler (optional, for logging to the console too)
|
||||||
@ -13,7 +13,7 @@ console_handler = logging.StreamHandler()
|
|||||||
console_handler.setLevel(logging.INFO)
|
console_handler.setLevel(logging.INFO)
|
||||||
|
|
||||||
# Create a logging format
|
# 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)
|
file_handler.setFormatter(formatter)
|
||||||
console_handler.setFormatter(formatter)
|
console_handler.setFormatter(formatter)
|
||||||
|
|
||||||
|
@ -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 \([+,(,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: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!
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
file_handler = logging.FileHandler("ragnar.log")
|
||||||
file_handler = logging.FileHandler('ragnar.log')
|
|
||||||
file_handler.setLevel(logging.DEBUG)
|
file_handler.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
|
Loading…
Reference in New Issue
Block a user