sgpinkus/simplelogger

Very simple one class PSR-3 PHP logger that just logs to error_log()

Installs: 3

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sgpinkus/simplelogger

v0.1.0 2021-05-02 01:04 UTC

This package is auto-updated.

Last update: 2025-09-29 02:43:50 UTC


README

Provides a single class,Logger, that implements a PSR-3 compatiable logger (Psr\Log\AbstractLogger) that just logs to error_log().

This exists because core PHP or PSR don't provide a useful logger (like say Javascript's console, or Python's logger library) and many of the third party PSR-3 loggers are too bloated or opinionated. Plus there is no clear consensus on which to use as a pseudo standard (AFAIK). PSR-3 only provides an interface Psr\Log\AbstractLogger. The Logger class provided by this package implements that as ~simply as possible with the constraint that logs should get piped through error_log().