struct CommandContext cc;
char *path;
char *loglev;
+ char *logfile;
int ret;
unsigned int cnt;
struct GNUNET_CONFIGURATION_Handle *cfg;
GNUNET_GETOPT_OPTION_CFG_FILE (&cc.cfgfile),
GNUNET_GETOPT_OPTION_HELP (binaryHelp),
GNUNET_GETOPT_OPTION_LOGLEVEL (&loglev),
+ GNUNET_GETOPT_OPTION_LOGFILE (&logfile),
GNUNET_GETOPT_OPTION_VERSION (PACKAGE_VERSION)
};
struct GNUNET_GETOPT_CommandLineOption *allopts;
const char *gargs;
+ logfile = NULL;
gargs = getenv ("GNUNET_ARGS");
if (gargs != NULL)
{
((GNUNET_OK !=
GNUNET_log_setup (binaryName,
loglev,
- NULL)) ||
+ logfile)) ||
(GNUNET_OK != GNUNET_CONFIGURATION_load (cfg, cc.cfgfile))))
{