Created
February 18, 2013 22:14
-
-
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'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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