Ejemplo n.º 1
0
 /**
  * @param string $format                     The format of the message
  * @param string $dateFormat                 The format of the timestamp: one supported by DateTime::format
  * @param bool   $allowInlineLineBreaks      Whether to allow inline line breaks in log entries
  * @param bool   $ignoreEmptyContextAndExtra
  */
 public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = false, $ignoreEmptyContextAndExtra = false)
 {
     $this->format = $format ?: static::SIMPLE_FORMAT;
     $this->allowInlineLineBreaks = $allowInlineLineBreaks;
     $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra;
     parent::__construct($dateFormat);
 }
Ejemplo n.º 2
0
 public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_')
 {
     parent::__construct('U.u');
     $this->systemName = $systemName ?: gethostname();
     $this->extraPrefix = $extraPrefix;
     $this->contextPrefix = $contextPrefix;
 }
Ejemplo n.º 3
0
 /**
  * @param string $dateFormat The format of the timestamp: one supported by DateTime::format
  */
 public function __construct($dateFormat = null)
 {
     parent::__construct($dateFormat);
 }
Ejemplo n.º 4
0
 /**
  * @param string $index Elastic Search index name
  * @param string $type  Elastic Search document type
  */
 public function __construct($index, $type)
 {
     parent::__construct(\DateTime::ISO8601);
     $this->index = $index;
     $this->type = $type;
 }