src/LogAction.php
public function append($action, $uid, $ip, $ext)
    {
        if (is_array($ext)) {
            $ext = json_encode($ext, JSON_UNESCAPED_UNICODE);
        } else if (!is_string($ext)) {
            $ext = '';
        }
        $this->_logger->addInfo($ext, [
            'datetime' => date('Y-m-d H:i:s'),
            'app' => self::$_app,
            'version' => self::$_version,
            'client' => 0,
            'os' => strtolower(PHP_OS),
            'ip' => $ip ? $ip : self::requestIp(),
            'from' => '',
            'uuid' => '',
            'uid' => $uid,
            'action' => $action,
            'ext' => $ext,
        ]);
    }
public function append($action, $uid, $ip, $ext)
    {
        if (is_array($ext)) {
            $ext = json_encode($ext, JSON_UNESCAPED_UNICODE);
        } else if (!is_string($ext)) {
            $ext = '';
        }
        $this->_logger->addInfo($ext, [
            'datetime' => date('Y-m-d H:i:s'),
            'app' => self::$_app,
            'version' => self::$_version,
            'client' => 0,
            'os' => strtolower(PHP_OS),
            'ip' => $ip ? $ip : self::requestIp(),
            'from' => '',
            'uuid' => '',
            'uid' => $uid,
            'action' => $action,
            'ext' => $ext,
        ]);
    }
log append
@param $level
@param string $route
@param string $uid
@param int $code
@param string $msg
@param string $ext