Index: /trunk/FACT++/src/Main.h
===================================================================
--- /trunk/FACT++/src/Main.h	(revision 19454)
+++ /trunk/FACT++/src/Main.h	(revision 19455)
@@ -25,5 +25,5 @@
     void SetupConfiguration(Configuration &conf)
     {
-        const string n = conf.GetName()+".log";
+        const auto n = fs::path(conf.GetName()+".log");
 
         po::options_description config("Program options");
@@ -32,6 +32,6 @@
             ("port",       var<uint16_t>(DNS_PORT),  "Port to connect to dim nameserver.")
             ("host",       var<string>(""),          "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
-            ("log,l",      var<string>(n), "Name of local log-file")
-            ("logpath",    var<string>(),  "Absolute path to log-files (default: excutable's directory)")
+            ("log,l",      var<string>(n.filename().string()), "Name of local log-file")
+            ("logpath",    var<string>(n.parent_path().string()),  "Path to log-files")
             ("no-log",     po_switch(),    "Supress log-file")
             ("append-log", po_bool(),      "Append log information to local log-file")
@@ -156,4 +156,6 @@
             const fs::path file = fs::path(conf.Get<string>("log")).filename();
 #endif
+            cerr << "Writing logfile to '" << (path/file).string() << endl;
+
             if (!wout.OpenLogFile((path/file).string(), conf.Get<bool>("append-log")))
                 win << kYellow << "WARNING - Couldn't open log-file " << (path/file).string() << ": " << strerror(errno) << endl;
