initiateLog - noetl/noetl GitHub Wiki
Parameters
- logId: current value passed in is 0
Key Variables
- log: log file
- logDir: log directory name; created if it does not already exist
- logFile: log filename
Functionality
Gets the Log Directory path from the configuration, and if the directory does not already exist, it is created.
InitiateLog then opens the logFile.
Except Statement
If an error arises, the except block prints the time, the error message, and the log file name.
Return Value
Returns 0.