27 if (!is_int($length) || $length > 32 || $length < 1) {
28 throw new \InvalidArgumentException(
'The uid length must be an integer between 1 and 32');
52 $this->uid = $this->
generateUid(strlen($this->uid));
57 return substr(
hash(
'md5', uniqid(
'',
true)), 0, $length);
Handler or Processor implementing this interface will be reset when Logger::reset() is called...
Adds a unique identifier into records.
hash(StreamInterface $stream, $algo, $rawOutput=false)
Calculate a hash of a Stream.
An optional interface to allow labelling Monolog processors.