setLevel($level); } $instance->writer = $writer; } catch (ConfigurationError $e) { self::$instance->error($e->getMessage()); } } }