adosaiguas/slim-analog

Analog logging support Slim Framework

Installs: 46

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/adosaiguas/slim-analog

1.0.1 2014-07-31 16:26 UTC

This package is auto-updated.

Last update: 2025-09-23 14:01:32 UTC


README

This repository adds support for logging to Analog to the Slim Framework.

Ported from the Slim-Monolog project.

Installation

AnalogWriter takes a handler in its constructor.

$logger = new \Adosaiguas\SlimAnalog\Log\AnalogWriter(
	\Analog\Handler\Threshold::init (
		\Analog\Handler\File::init ($log_path),
		\Analog::DEBUG
	)
);

$app = new \Slim\Slim(array(
    'log.writer' => $logger,
));

This example assumes you are autoloading dependencies using Composer. If you are not using Composer, you must manually require the log writer class before instantiating it.

License

The Slim-Analog is released under the MIT public license.