Download the PHP package understand/understand-monolog without Composer
On this page you can find all versions of the php package understand/understand-monolog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download understand/understand-monolog
More information about understand/understand-monolog
Files in understand/understand-monolog
Package understand-monolog
Short Description Understand.io Monolog package.
License MIT
Homepage https://github.com/understand/understand-monolog
Informations about the package understand-monolog
Monolog Understand.io handler
Introduction
This package provides a Monolog handler and formatter for log data delivery to Understand.io.
You may also be interested in our Laravel 4, Laravel 5 or Laravel Lumen service provider handler
Quick start
-
Install package
- Add an Understand handler to Monolog
Handlers
UnderstandSyncHandler
The sync handler uses the PHP Curl extension and delivers logs synchronously to Understand.io. This means that if your application generates a large amount of data it could slow down your app.
UnderstandAsyncHandler
We recommend making use of the async
handler where possible. It is supported in most systems - the only requirement is that CURL command line tool is installed and functioning correctly. To check whether CURL is available on your system, execute the following command in your console
If you see instructions on how to use CURL then your system has the CURL binary installed and you can use the async handler.
Exception encoder
This helper class allows you to serialize PHP exceptions as an array which can be then serialized to json. The main benefit of doing this is that Understand will then be able to parse your logs more intelligently, allowing for better search and filtering capabilities.
How to use the Exception encoder
License
The Understand.io Monolog package is open-sourced software licensed under the MIT license