ohctech_p8/includes/config/examples/composite.php
2024-10-16 19:18:52 +05:30

13 lines
306 B
PHP

<?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.');