Download the PHP package vube/monolog-splunk-formatter without Composer
On this page you can find all versions of the php package vube/monolog-splunk-formatter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vube/monolog-splunk-formatter
More information about vube/monolog-splunk-formatter
Files in vube/monolog-splunk-formatter
Package monolog-splunk-formatter
Short Description Splunk Line Formatter for Monolog
License MIT
Informations about the package monolog-splunk-formatter
Splunk Formatter
A Splunk Formatter for Monolog
About
vube/monolog-splunk-formatter
is a formatter for use with Monolog.
It augments the Monolog LineFormatter
by adding Splunk-optimized handling of associative array contexts.
Prerequisites/Requirements
- PHP 5.3.0 or greater
- Composer
Installation
Installation is possible using Composer
Usage
Create an instance of \Vube\Monolog\Formatter\SplunkLineFormatter
and set it as the formatter for the \Monolog\Handler\StreamHandler
that you use with your \Monolog\Logger
instance.
Unit Testing
vube/monolog-splunk-formatter
ships with unit tests using PHPUnit.
-
If PHPUnit is installed globally run
phpunit
to run the tests. - If PHPUnit is not installed globally, install it locally through composer by running
composer install --dev
. Run the tests themselves by callingvendor/bin/phpunit
.
Unit tests are also automatically run on Travis CI
License
vube/monolog-splunk-formatter
is released under the MIT public license. See the enclosed LICENSE
for details.
Thanks
Thanks to Bramus for contributing a Monolog formatter, I was inspired by and reused some of his work.