Improved file logger.