From 8b2781836e79c3145b511e87c2699385153749cd Mon Sep 17 00:00:00 2001
From: Jon Parise 3 Composite Handlers
provides a compositing system that marks this task trivial.
Start by creating the individual log handlers:
-$console = Log::singleton('console', '', 'TEST'); -$file = Log::singleton('file', 'out.log', 'TEST'); +$console = Log::factory('console', '', 'TEST'); +$file = Log::factory('file', 'out.log', 'TEST');
Then, construct a composite handler and add the individual handlers as children of the composite: