icans / logging-component
ICANS Logging Component
Installs: 41
Dependents: 2
Suggesters: 0
Security: 0
Stars: 5
Watchers: 15
Forks: 3
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.3
- ebuzzing/thrift: dev-master
- monolog/monolog: 1.*
Requires (Dev)
- symfony/class-loader: >=2.0,<3.0
This package is not auto-updated.
Last update: 2025-03-01 16:26:45 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: