icans/logging-component

There is no license information available for the latest version (dev-master) of this package.

ICANS Logging Component

Installs: 41

Dependents: 2

Suggesters: 0

Security: 0

Stars: 5

Watchers: 15

Forks: 3

Open Issues: 1

Type:symfony-bundle

dev-master 2013-07-18 08:35 UTC

This package is not auto-updated.

Last update: 2024-04-13 12:17:11 UTC


README

A PHP Component providing:

  • a Flume-Handler to write to a flume-node
  • a FilterInterface to write filters which can be added to the handler and filter the data
  • a PostProcessorInterface to write a postprocessor which can enrich the logged data
  • a Timer to measure execution times
  • a ProgressInformationInterface with default implementation to have progress messages in a CLI Command

Installation: You can use composer to install the component from packagist: icans/logging-component

Usages:

ThriftFlumeHandler:

setFormatter($formatter); //the processor has to implement the ICANS\Component\IcansLoggingComponent\Api\V1\PostProcessorInterface $processor = new myPostProcessor(); $thriftFlumeProcessingHandler->pushProcessor($processor); $emptyFilter = new ICANS\Component\IcansLoggingComponent\Filter\EmptyFilter(); $thriftFlumeProcessingHandler->addFilter($emptyFilter); $recordData = array('testdata' => 'test'); //will write to the flume node $thriftFlumeProcessingHandler->write($recordData); RabbitMqHandler: