src/Leevel/Log/File.php
public static function formatMessage(string $level, string $message, array $context = []): string
    {
        return sprintf(
            '[%s] %s %s: %s'.PHP_EOL,
            date('Y-m-d H:i:s'), $message, $level,
            json_encode($context, JSON_UNESCAPED_UNICODE)
        );
    }
public static function formatMessage(string $level, string $message, array $context = []): string
    {
        return sprintf(
            '[%s] %s %s: %s'.PHP_EOL,
            date('Y-m-d H:i:s'), $message, $level,
            json_encode($context, JSON_UNESCAPED_UNICODE)
        );
    }
格式化日志信息.

@param string $level
@param string $message
@param array  $context

@return string