If there is a problem creating state logger file, this will publish to
event log.