Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

logging: console support/format for new log types

  • Loading branch information...
commit 3f6593311bf845fee510760c58e943cbf6972cc1 1 parent 9d76d3f
@rchavik rchavik authored
View
4 lib/Cake/Console/ConsoleOutput.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"),
View
2  lib/Cake/Console/Shell.php
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.