add log method

添加日志模块