Changeset 19455 for trunk/FACT++
- Timestamp:
- 03/28/19 20:55:43 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Main.h
r19411 r19455 25 25 void SetupConfiguration(Configuration &conf) 26 26 { 27 const string n = conf.GetName()+".log";27 const auto n = fs::path(conf.GetName()+".log"); 28 28 29 29 po::options_description config("Program options"); … … 32 32 ("port", var<uint16_t>(DNS_PORT), "Port to connect to dim nameserver.") 33 33 ("host", var<string>(""), "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)") 34 ("log,l", var<string>(n ), "Name of local log-file")35 ("logpath", var<string>( ), "Absolute path to log-files (default: excutable's directory)")34 ("log,l", var<string>(n.filename().string()), "Name of local log-file") 35 ("logpath", var<string>(n.parent_path().string()), "Path to log-files") 36 36 ("no-log", po_switch(), "Supress log-file") 37 37 ("append-log", po_bool(), "Append log information to local log-file") … … 156 156 const fs::path file = fs::path(conf.Get<string>("log")).filename(); 157 157 #endif 158 cerr << "Writing logfile to '" << (path/file).string() << endl; 159 158 160 if (!wout.OpenLogFile((path/file).string(), conf.Get<bool>("append-log"))) 159 161 win << kYellow << "WARNING - Couldn't open log-file " << (path/file).string() << ": " << strerror(errno) << endl;
Note:
See TracChangeset
for help on using the changeset viewer.