configurable log
authorKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 15:13:20 +0000 (15:13 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 15:13:20 +0000 (15:13 +0000)
zmd/backend/query-system.cc

index c09268a..2ee6107 100644 (file)
@@ -26,7 +26,11 @@ main (int argc, char **argv)
        return 1;
     }
 
-    zypp::base::LogControl::instance().logfile( ZMD_BACKEND_LOG );
+    const char *logfile = getenv("ZYPP_LOGFILE");
+    if (logfile != NULL)
+       zypp::base::LogControl::instance().logfile( logfile );
+    else
+       zypp::base::LogControl::instance().logfile( ZMD_BACKEND_LOG );
 
     ZYpp::Ptr God = zypp::getZYpp();