public function write(string $level, string $message, array $context)
    {
        $levnum = Logger::getLevelNumeric($level);
        if ($levnum < $this->min_level)
            return;

        $lvl = sprintf("%10s", $level);
        $message = $this->format($lvl, $message, $context);
        $this->log[] = $message; //sprintf("%10s: %s", strtoupper($level), $message);
    }