Permalink
Browse files

logging: console support/format for new log types

  • Loading branch information...
1 parent 9d76d3f commit 3f6593311bf845fee510760c58e943cbf6972cc1 @rchavik rchavik committed May 24, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/Cake/Console/ConsoleOutput.php
  2. +1 −1 lib/Cake/Console/Shell.php
@@ -128,9 +128,13 @@ class ConsoleOutput {
* @var array
*/
protected static $_styles = array(
+ 'emergency' => array('text' => 'red', 'underline' => true),
+ 'alert' => array('text' => 'red', 'underline' => true),
+ 'critical' => array('text' => 'red', 'underline' => true),
'error' => array('text' => 'red', 'underline' => true),
'warning' => array('text' => 'yellow'),
'info' => array('text' => 'cyan'),
+ 'debug' => array('text' => 'yellow'),
'success' => array('text' => 'green'),
'comment' => array('text' => 'blue'),
'question' => array('text' => "magenta"),
@@ -175,7 +175,7 @@ public function __construct($stdout = null, $stderr = null, $stdin = null) {
}
CakeLog::config('stderr', array(
'engine' => 'ConsoleLog',
- 'types' => array('error', 'warning'),
+ 'types' => array('emergency', 'alert', 'critical', 'error', 'warning', 'debug'),
'stream' => $this->stderr,
));
if ($this->stdin == null) {

0 comments on commit 3f65933

Please sign in to comment.