Concept Flow - Logging framework
Start Script
Define Log Function
Call Log Function with Message
Log Function Formats Message
Write Message to Log File
Continue Script or Exit
The script starts, defines a logging function, then calls it to write formatted messages to a log file, continuing or ending afterward.