Beispiel #1
0
 public function test_getInstance()
 {
     $instance = Logger::getInstance();
     $this->assertInstanceOf('\\Xoops\\Core\\Logger', $instance);
     $instance1 = Logger::getInstance();
     $this->assertSame($instance1, $instance);
 }
Beispiel #2
0
 /**
  * constructor
  */
 public function __construct()
 {
     Logger::getInstance()->addLogger($this);
 }
Beispiel #3
0
 /**
  * get the system logger instance
  *
  * @return \Xoops\Core\Logger
  */
 public function logger()
 {
     return \Xoops\Core\Logger::getInstance();
 }