mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
* implement --loglevel option
This commit is contained in:
parent
2dae5bccb2
commit
a0e8fe5848
4 changed files with 24 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue