[← Debug](/docs/en-US/8-Debug.md) | Log[(中文)](/docs/zh-CN/9-Log.md) | [Test →](/docs/en-US/10-Test.md) *** # Log ## Set Logger To start the logging function, pass in an object that implements the `LoggerInterface` interface, for example: `Monolog\Logger`. ```php pushHandler(new StreamHandler($logFile)); AlibabaCloud::setLogger($logger); ``` ## Log Format ### Default Format ```text "{method} {uri} HTTP/{version}" {code} {cost} {hostname} {pid} ``` ### Set Format ```php