diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-07-26 07:49:09 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-07-26 07:49:09 +0200 |
| commit | b618b8360a69ada6b0ca412d5d15d7ec1edb9e82 (patch) | |
| tree | 56f51cc63a62fc106633d7b4bde1ef3e41e80041 /src/callnotifier/CLI.php | |
| parent | e60135e26ab4b374642f6f9293ddcac26adcacc8 (diff) | |
| download | auerswald-callnotifier-b618b8360a69ada6b0ca412d5d15d7ec1edb9e82.tar.gz auerswald-callnotifier-b618b8360a69ada6b0ca412d5d15d7ec1edb9e82.zip | |
introduce separate log object and callmonitor
Diffstat (limited to 'src/callnotifier/CLI.php')
| -rw-r--r-- | src/callnotifier/CLI.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/callnotifier/CLI.php b/src/callnotifier/CLI.php index 55f7f71..5fdde92 100644 --- a/src/callnotifier/CLI.php +++ b/src/callnotifier/CLI.php @@ -23,15 +23,19 @@ class CLI $this->fillConfig($this->config, $result); - $handler = new MessageHandler($this->config); + $log = new Log(); if ($result->options['debug'] || $result->options['debugEdss1']) { $debugLogger = new Logger_Debug(); - $handler->addLogger($debugLogger, '*'); + $log->addLogger($debugLogger, '*'); if ($result->options['debugEdss1']) { $debugLogger->edss1MsgOnly = true; } } + $callMonitor = new CallMonitor($this->config, $log); + + $handler = new MessageHandler($this->config, $log, $callMonitor); + if ($this->config->replayFile !== null) { $sourceClass = 'callnotifier\Source_File'; } else { |
