2 namespace callnotifier;
4 class Logger_Echo implements Logger
6 public function __construct()
8 $cc = new \Console_Color2();
9 $this->begin = $cc->convert('%y');
10 $this->end = $cc->convert('%n');
11 $this->blue = $cc->convert('%b');
14 public function log($type, $arData)
16 if ($type == 'msgData') {
17 echo $this->begin . $arData['type'] . $this->end
18 . ': ' . $arData['details'] . "\n";
20 echo $this->blue . $type . $this->end . ': '
21 . var_export($arData, true) . "\n";