shared.logging¶
logging.py
This module sets up logging for different environments based on whether the application is executed as a standalone program or as a Flask app.
- shared.logging.setup_logging(is_executable, uploadfolder)¶
Set up conditional logging based on type
- Parameters:
is_executable – True if Flask app is run, False otherwise
uploadfolder (str) – The directory where log files should be saved. If not provided, logs will be saved in a ‘temp’ directory adjacent to this module.
- shared.logging.stepLog(message, *args, **kwargs)¶
Log a message that includes an incremental step counter in a main script
- Parameters:
message – message text to
- Returns:
Log message containing incremental step count