Use new colors in terminal

This commit is contained in:
Shoghi Cervantes
2015-03-15 18:32:36 +01:00
parent d5601b0c9f
commit f9361aa931
3 changed files with 20 additions and 27 deletions

View File

@ -177,13 +177,13 @@ class MainLogger extends \AttachableThreadedLogger{
protected function send($message, $level = -1){
$now = time();
$message = TextFormat::toANSI(TextFormat::AQUA . date("H:i:s", $now) . TextFormat::RESET . " " . $message . TextFormat::RESET . PHP_EOL);
$message = TextFormat::toANSI(TextFormat::AQUA . date("H:i:s", $now) . TextFormat::RESET . " " . $message . TextFormat::RESET);
$cleanMessage = TextFormat::clean($message);
if(!Terminal::hasFormattingCodes()){
echo $cleanMessage;
echo $cleanMessage . PHP_EOL;
}else{
echo Terminal::$START_LINE . $message . Terminal::$END_LINE;
echo $message . PHP_EOL;
}
if($this->attachment instanceof \ThreadedLoggerAttachment){