Injects memory_get_peak_usage in all records

  • see \Monolog\Processor\MemoryProcessor::__construct()for options
  • author Rob Jensen
CloneableInstantiable
ExtendsMonolog\Processor\MemoryProcessor
ImplementsMonolog\Processor\ProcessorInterface
Methods
public Monolog\Processor\MemoryProcessor::__construct(bool $realUsage = true, bool $useFormatting = true)
 


    public __invoke(array $record) : array
    Properties
    protected Monolog\Processor\MemoryProcessor::$realUsage
     


    • var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported.
    protected Monolog\Processor\MemoryProcessor::$useFormatting
     


    • var bool If true, then format memory size to human readable string (MB, KB, B depending on size)
    Methods
    protected Monolog\Processor\MemoryProcessor::formatBytes(int $bytes)
     
    Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is

    • return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as int
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only