/** * Returns the singleton object * * @param string $loggerName * @return $this */ public static function getInstance($loggerName = __CLASS__) { $instance = new self(); $instance->setLoggerName($loggerName); return $instance; }