add some custom console log message formatting; add option to output file that log function was called from