add support for log redirect