Пример #1
0
 function &getWriterSingleton($name, $logger_name, $level = ABC_DEBUG)
 {
     static $instances;
     if (!isset($instances)) {
         $instances = array();
     }
     $signature = serialize(array($name, $level));
     if (!isset($instances[$signature])) {
         $instances[$signature] = DebugOut::Factory($name, $logger_name, $level);
     }
     return $instances[$signature];
 }
Пример #2
0
 function ExcelFileParser($logfile = "", $level = ABC_NO_LOG)
 {
     $this->dbglog =& DebugOut::getWriterSingleton($logfile, "", $level);
     $this->dbglog->info("Logger started");
 }
Пример #3
0
 function __construct($logfile = "", $level = ABC_NO_LOG)
 {
     $this->dbglog =& DebugOut::getWriterSingleton($logfile, "", $level);
     $this->dbglog->info("Logger запущен");
 }