private function formatMessage($level, $message, $context)
    {
        $level = strtoupper($level);
        if (!empty($context)) {
            $message .= PHP_EOL . $this->indent($this->contextToString($context));
        }
        return "[{$this->getTimestamp()}] [{$level}] {$message}" . PHP_EOL;
    }