Skip to content

Instantly share code, notes, and snippets.

@basz
Created May 30, 2012 14:31
Show Gist options
  • Select an option

  • Save basz/2836664 to your computer and use it in GitHub Desktop.

Select an option

Save basz/2836664 to your computer and use it in GitHub Desktop.
However this works... yet it feels a little clumsy
'idealLogger' => array(
'stream' => array('stream' => __DIR__ . '/../../../data/logs/ideal.log'),
)
$logger = new \Zend\Log\Logger();
foreach($sm->get('config')->idealLogger as $name => $options) {
$writer = $logger->plugin($name, $options->toArray());
$logger->addWriter($writer);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment