aboutsummaryrefslogtreecommitdiff
path: root/src/callnotifier/CLI.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-08-07 15:07:05 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-08-07 15:07:05 +0200
commit67eb8026d25dd261358ef5de1c8a5a6111a8e282 (patch)
tree16758caaa50b7e60f49757ebcef85e00375f2ef4 /src/callnotifier/CLI.php
parentf4bd5ef0c711aa9a3d0f6b468370a8c14c0e247a (diff)
downloadauerswald-callnotifier-67eb8026d25dd261358ef5de1c8a5a6111a8e282.tar.gz
auerswald-callnotifier-67eb8026d25dd261358ef5de1c8a5a6111a8e282.zip
call logging to database
Diffstat (limited to 'src/callnotifier/CLI.php')
-rw-r--r--src/callnotifier/CLI.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/callnotifier/CLI.php b/src/callnotifier/CLI.php
index 6165f15..7109e73 100644
--- a/src/callnotifier/CLI.php
+++ b/src/callnotifier/CLI.php
@@ -64,6 +64,14 @@ class CLI
new Logger_CallFile('all.log'),
array('finishedCall')
);
+ $log->addLogger(
+ new Logger_CallDb(
+ 'mysql:host=localhost;dbname=callnotifier',
+ 'callnotifier',
+ 'callnotifier'
+ ),
+ array('finishedCall')
+ );
$handler = new MessageHandler($this->config, $log, $callMonitor);