file call logger
[auerswald-callnotifier.git] / src / callnotifier / CLI.php
index 2a6d3ca6ea4aa5d96c233ff5d2ff28ae235ef8a8..6165f15550a56cd71be319125782e28f7be827a6 100644 (file)
@@ -36,6 +36,34 @@ class CLI
         );
 
         $callMonitor = new CallMonitor($this->config, $log);
+        /*
+        $callMonitor->addDetailler(
+            new CallMonitor_Detailler_LDAP(
+                array(
+                    'host' => 'ldap.home.cweiske.de',
+                    'basedn' => 'ou=adressbuch,dc=cweiske,dc=de',
+                    'binddn' => 'cn=readonly,ou=users,dc=cweiske,dc=de',
+                    'bindpw' => 'readonly'
+                )
+            )
+        );
+        $callMonitor->addDetailler(
+            new CallMonitor_Detailler_OpenGeoDb(
+                'mysql:host=dojo;dbname=opengeodb',
+                'opengeodb-read',
+                'opengeodb'
+            )
+        );
+        */
+
+        $log->addLogger(
+            new Logger_CallFile('incoming.log', 'i', '40862'),
+            array('finishedCall')
+        );
+        $log->addLogger(
+            new Logger_CallFile('all.log'),
+            array('finishedCall')
+        );
 
         $handler = new MessageHandler($this->config, $log, $callMonitor);