Exemplo n.º 1
0
 function __construct($name, $level = self::NOTSET)
 {
     parent::__construct();
     $this->name = $name;
     $this->level = $this->_checkLevel($level);
     $this->parent = null;
     $this->propogate = 1;
     $this->handlers = array();
     $this->disabled = 0;
 }
Exemplo n.º 2
0
 /**
  * Initializes the instance - basically setting the formatter to None
  * and the filter list to empty.
  */
 function __construct($level = Logger::NOTSET)
 {
     parent::__construct();
     $this->_name = null;
     $this->level = Logger::_checkLevel($level);
     $this->formatter = null;
     //self::_addHandlerRef($this);
     if (!isset(static::$defaultFormatter)) {
         static::$defaultFormatter = new Formatter(Log::$BASIC_FORMAT);
     }
 }