Download the PHP package uniplaces/uniplaces-monolog-extension without Composer
On this page you can find all versions of the php package uniplaces/uniplaces-monolog-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uniplaces/uniplaces-monolog-extension
More information about uniplaces/uniplaces-monolog-extension
Files in uniplaces/uniplaces-monolog-extension
Package uniplaces-monolog-extension
Short Description logger processors for uniplaces standards
License MIT
Informations about the package uniplaces-monolog-extension
Uniplaces monolog extension
Package to support logging standards at uniplaces (www.uniplaces.com). The first only define a processor to decorate log with specific fields used to create filters.
Prerequisites
This package needs php 7.0 or a higher version and is meant to run in a symfony 4 application. Also, is supposed to have composer in the machine where is the project is going to be mounted.
Installing
To install it locally (for developing purpose) run:
In order to use the common processor you have to register it in the service.yaml:
The processor expextes APP_ID
and GIT_HASH
to be defined in the environment.
Also define a json formatter in order to be able to add the fields the log must be in json format; because of this you have to register Monolog\Formatter\JsonFormatter
optionally you can add a coll to includeStacktraces to add stack trace.
Running the tests
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Authors
Made with :heart: at uniplaces
License
This project is licensed under the MIT License - see the LICENSE.md file for details