This function will append a log to the log file and print it to the console
is a path to the log folder
is a stage name
is a log message
This function will append a log to the log file and print it to the console