aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/Logger/CallEcho.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-08-10 18:16:02 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-08-10 18:16:02 +0200
commite839909cbd2ac51620fa1607d92b8b6d5a54f837 (patch)
tree5c15f80199f7501b3cfd66469a2e53bb41076222 /src/callnotifier/Logger/CallEcho.php
parent4bc203883b0b35be4892768679340effd1348a2f (diff)
downloadauerswald-callnotifier-e839909cbd2ac51620fa1607d92b8b6d5a54f837.tar.gz
auerswald-callnotifier-e839909cbd2ac51620fa1607d92b8b6d5a54f837.zip
show names in CallEcho logger
Diffstat (limited to 'src/callnotifier/Logger/CallEcho.php')
-rw-r--r--src/callnotifier/Logger/CallEcho.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/callnotifier/Logger/CallEcho.php b/src/callnotifier/Logger/CallEcho.php
index 825bc24..ad13406 100644
--- a/src/callnotifier/Logger/CallEcho.php
+++ b/src/callnotifier/Logger/CallEcho.php
@@ -1,7 +1,7 @@
<?php
namespace callnotifier;
-class Logger_CallEcho implements Logger
+class Logger_CallEcho extends Logger_CallBase
{
public function log($type, $arData)
{
@@ -18,16 +18,18 @@ class Logger_CallEcho implements Logger
protected function displayStart(CallMonitor_Call $call)
{
+ $this->addUnsetVars($call);
echo 'Starting ' . $this->getTypeName($call)
- . ' call from ' . $call->from
- . ' to ' . $call->to . "\n";
+ . ' call from ' . trim($this->getNumberString($call, 'from'))
+ . ' to ' . trim($this->getNumberString($call, 'to')) . "\n";
}
protected function displayFinished(CallMonitor_Call $call)
{
+ $this->addUnsetVars($call);
echo 'Finished ' . $this->getTypeName($call)
- . ' call from ' . $call->from
- . ' to ' . $call->to
+ . ' call from ' . trim($this->getNumberString($call, 'from'))
+ . ' to ' . trim($this->getNumberString($call, 'to'))
. ', length ' . date('H:i:s', $call->end - $call->start - 3600)
. "\n";
}