public static function log($type, $message = null, array $context = []) { static::$logger or static::$logger = Di::getDefault()->getShared('log'); $context['host'] = static::$hostname; $context['request'] = fnGet($_SERVER, 'REQUEST_METHOD') . ' ' . fnGet($_SERVER, 'REQUEST_URI'); static::$logger->log($type, $message, $context); }