1<?php 2 3require_once 'Log.php'; 4 5$console = &Log::singleton('console', '', 'TEST'); 6$file = &Log::singleton('file', 'out.log', 'TEST'); 7 8$composite = &Log::singleton('composite'); 9$composite->addChild($console); 10$composite->addChild($file); 11 12$composite->log('This event will be logged to both handlers.'); 13