Ejemplo n.º 1
0
 /**
  * Creates a new instance of StupidHttp_PearLog wrapped around the given PEAR logger.
  */
 public function __construct(Log $log)
 {
     parent::__construct();
     $this->log = $log;
     $this->isBuffering = false;
     $this->bufferedMessages = array();
 }
Ejemplo n.º 2
0
 /**
  * Creates a new instance of StupidHttp_ConsoleLog.
  */
 public function __construct($level = StupidHttp_Log::TYPE_INFO, $prefixAllMessages = false)
 {
     parent::__construct();
     $this->level = $level;
     $this->prefixAllMessages = $prefixAllMessages;
     $this->isBuffering = false;
     $this->buffer = '';
 }
Ejemplo n.º 3
0
 /**
  * Creates a new instance of StupidHttp_MultiLog.
  */
 public function __construct(array $logs)
 {
     parent::__construct();
     $this->logs = $logs;
 }