add a callback to let the logger know it's being called, that's useful to make sure the logging file is available