File: composite.php

package info (click to toggle)
php-log 1.12.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 460 kB
  • ctags: 605
  • sloc: php: 1,859; xml: 423; sql: 8; makefile: 5
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.');