edwrodrig/logger

Small fancy logger with indentation facilities

1.0.1 2019-12-16 18:51 UTC

This package is auto-updated.

Last update: 2024-04-17 06:39:01 UTC


README

Small fancy logger with indentation facilities

Latest Stable Version Total Downloads License Build Status codecov.io Code Coverage Code Climate

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.

Architecture Quick Reference

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.