private static function instance() { if (static::$obj === NULL) { $klass = \Sauce\Config::get('logger'); if (!$klass instanceof \Psr\Log\LoggerInterface) { $klass = new \Sauce\LoggerAware(); } elseif (is_string($klass)) { $klass = new $klass(); } static::$obj = $klass; } return static::$obj; }