if SHOW_LOGMSG_ON SCREEN - printf the message before writing it to file -> helps when debugging