/** * Returns the sfLogger instance. * * @return object the sfLogger instance */ public static function getInstance() { if (!sfLogger::$logger) { // the class exists $class = __CLASS__; sfLogger::$logger = new $class(); sfLogger::$logger->initialize(); } return sfLogger::$logger; }