edwrodrig / logger
Small fancy logger with indentation facilities
Requires
- php: ^7.4
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-04-17 06:39:01 UTC
README
Small fancy logger with indentation facilities
My use cases
- A simple form to indent log if there are some nesting context.
- Indent only when needed. When there is no logs inside
- Compatible with php resources interface
- I want to maintain the things as simple as possible
My infrastructure is targeted to Ubuntu 16.04 machines with last php7.4 installed from ppa:ondrej/php. I'm sure that there are way to make it compatible with windows but I don't have time to program it and testing, but I'm open for pull requests to make it more compatible.
Documentation
The source code is documented using phpDocumentor style, so it should pop up nicely if you're using IDEs like PhpStorm or similar.
Examples
There is a example page how to use the logger
Composer
composer require edwrodrig/logger
Testing
The test are built using PhpUnit. It generates images and compare the signature with expected ones. Maybe some test fails due metadata of some generated images, but at the moment I haven't any reported issue.
License
MIT license. Use it as you want at your own risk.
About language
I'm not a native english writer, so there may be a lot of grammar and orthographical errors on text, I'm just trying my best. But feel free to correct my language, any contribution is welcome and for me they are a learning instance.