* implement --loglevel option

This commit is contained in:
hagen 2015-12-28 00:00:00 +00:00
parent 2dae5bccb2
commit a0e8fe5848
4 changed files with 24 additions and 5 deletions

View file

@ -110,9 +110,10 @@ namespace i2p
logfile_path.append("\\i2pd.log");
#endif
StartLog (logfile_path);
}
else
} else {
StartLog (""); // write to stdout
}
g_Log->SetLogLevel(i2p::util::config::GetArg("-loglevel", "info"));
}
LogPrint(eLogInfo, "Daemon: staring HTTP Server");