File: composite.php

package info (click to toggle)
php-log 1.10.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 404 kB
  • ctags: 592
  • sloc: php: 1,822; xml: 237; sql: 8; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (8)
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.');