https://github.com/sgpinkus/simplelogger
Very simple one class PSR-3 PHP logger that just logs to error_log()
https://github.com/sgpinkus/simplelogger
Last synced: 2 months ago
JSON representation
Very simple one class PSR-3 PHP logger that just logs to error_log()
- Host: GitHub
- URL: https://github.com/sgpinkus/simplelogger
- Owner: sgpinkus
- Created: 2021-04-12T11:00:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-02T01:06:40.000Z (about 4 years ago)
- Last Synced: 2025-02-13T14:18:03.584Z (4 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP SimpleLogger
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](http://www.php-fig.org/psr/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()`.