Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.32 KB

2.Configuration.md

File metadata and controls

35 lines (23 loc) · 1.32 KB

2. Configuration

Table of contents

  1. Installation and Setup
  2. Configuration
  3. Usage
  4. FAQ
  5. Development

See Config

Large files

At first, you can see peak memory usage and memory limit in footer

For too large files there is max_log_size setting in config. It will exclude files larger than supplied value in bytes

If you do not want to exclude big files but have Allowed memory size of n bytes exhausted error than use chunked_size_threshold setting. It allows to read files larger than supplied value in bytes via generators internally using SplFileObject::fgets calls

If log-viewer works too slow after applying chunked_size_threshold than consider increasing php.ini memory_limit

TLDR; You would balance between CPU and memory consumption

Dashboard

Also, you can include or exclude log files in pattern.prefix using glob syntax (not regex):

'pattern' => [
    'prefix'    => '{laravel,service-guzzle}-',
    'date'      => Filesystem::PATTERN_DATE,      // '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]'
    'extension' => Filesystem::PATTERN_EXTENSION, // '.log'
],