Changeset 15177 for trunk


Ignore:
Timestamp:
03/28/13 20:51:56 (12 years ago)
Author:
tbretz
Message:
Added a --no-log option, just in case...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Main.h

    r15109 r15177  
    3131            ("host",       var<string>(),                  "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
    3232            ("log,l",      var<string>(n), "Name of local log-file")
     33            ("no-log",     po_switch(),    "Supress log-file")
    3334            ("append-log", po_bool(),      "Append log information to local log-file")
    3435            ("null",       po_switch(),    "Suppresses almost all console output - including errors (only available without --console option)")
     
    106107        }
    107108
    108         if (conf.Has("log"))
     109        if (conf.Has("log") && !conf.Get<bool>("no-log"))
    109110            if (!wout.OpenLogFile(conf.Get<string>("log"), conf.Get<bool>("append-log")))
    110111                win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl;
Note: See TracChangeset for help on using the changeset viewer.