Skip to content

Instantly share code, notes, and snippets.

@luissquall
Created June 23, 2014 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luissquall/bdcf6244b818ed6153df to your computer and use it in GitHub Desktop.
Save luissquall/bdcf6244b818ed6153df to your computer and use it in GitHub Desktop.
// bootstrap.php
CakeLog::config('error', array(
'engine' => 'File',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'scopes' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));
CakeLog::config('email_error', array(
'engine' => 'File',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'scopes' => array('email'),
'file' => 'email_error'
));
// Some controller
CakeLog::write('error', 'Hello mono!', 'email');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment