extend the logging to log the code location and rotate the log daily