Skip to content

This logger package provides a few helper classes to minimize the performance impact of writing logs.

License

Notifications You must be signed in to change notification settings

bjoern-buettner/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logger

This logger package provides a few helper classes to minimize the performance impact of writing logs. If you desire additional options, please open an issues.

Installation

composer require bjoern-buettner/logger

Contained Classes

All mentioned classes can be found in the namespace Me\BjoernBuettner\Logger.

EagerMonologRoundRobinFileHandler

The eager monolog round robin file handler for Monolog writes directly to a set of files, that are randomly chosen from a list of possible files. This means, that the chance of a file being written to by multiple handlers at once gets way smaller, removing nearly all of the performance impact.

LazyLoggerFacade

This is a psr-compatible implementation of a logger only dumping the messages from memory after a request finished. This completely removes the file access overhead from the user-measurable webrequest speed.

LazyMonologHandlerFacade

The lazy monolog handler facade is an implementation of a Monolog handler only dumping the messages from memory after a request finished. This completely removes all remote access overhead from the user-measurable webrequest speed.

About

This logger package provides a few helper classes to minimize the performance impact of writing logs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages