Updating logging code to support file loggers