/usr/share/doc/php-log/examples/composite.php is in php-log 1.12.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | <?php
require_once 'Log.php';
$console = &Log::singleton('console', '', 'TEST');
$file = &Log::singleton('file', 'out.log', 'TEST');
$composite = &Log::singleton('composite');
$composite->addChild($console);
$composite->addChild($file);
$composite->log('This event will be logged to both handlers.');
|