X-Git-Url: https://git.cweiske.de/auerswald-callnotifier.git/blobdiff_plain/706ce1501a9ab1a33e4106774665c631a3ad3749..fc647788cf137595e84bea72edb16d86ab1d76a5:/src/callnotifier/Logger/Echo.php diff --git a/src/callnotifier/Logger/Echo.php b/src/callnotifier/Logger/Echo.php new file mode 100644 index 0000000..eec9bb1 --- /dev/null +++ b/src/callnotifier/Logger/Echo.php @@ -0,0 +1,27 @@ +begin = $cc->convert('%y'); + $this->end = $cc->convert('%n'); + $this->blue = $cc->convert('%b'); + } + + public function log($type, $arData) + { + if ($type == 'msgData') { + echo $this->begin . $arData['type'] . $this->end + . ': ' . $arData['details'] . "\n"; + } else { + echo $this->blue . $type . $this->end . ': ' + . var_export($arData, true) . "\n"; + } + } + +} + +?>