Skip to content

Instantly share code, notes, and snippets.

@notomato
Created February 18, 2013 22:14
Show Gist options
  • Save notomato/4981259 to your computer and use it in GitHub Desktop.
Save notomato/4981259 to your computer and use it in GitHub Desktop.
Configure logger to save to date based files - 'info-01-03-2012.log'
Logger::config(array(
'default' => array(
'adapter' => 'File',
'path' => dirname(__DIR__) . '/logs/',
'file' => function($details, $config) {
return $details['priority'] . '-' . date('d-m-Y') '.log';
}
)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment