Пример #1
0
 function __construct($name, $level, $pathname, $lineno, $msg, $args, $exc_info, $func = null)
 {
     $ct = microtime(true);
     $this->name = $name;
     $this->msg = $msg;
     $this->args = $args;
     $this->levelname = Logger::getLevelName($level);
     $this->levelno = $level;
     $this->pathname = $pathname;
     $this->filename = basename($pathname);
     $this->exc_info = $exc_info;
     $this->exc_text = null;
     $this->lineno = $lineno;
     $this->funcName = $func;
     $this->created = (int) $ct;
     $this->msecs = ($ct - $this->created) * 1000;
     $this->relativeCreated = ($this->created - static::$_startTime) * 1000;
 }