mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-20 14:21:49 +02:00
add syslog logging option
This commit is contained in:
parent
53b7eba31a
commit
5261a3e845
4 changed files with 73 additions and 7 deletions
|
@ -159,7 +159,10 @@ namespace i2p
|
|||
if (isDaemon && (logs == "" || logs == "stdout"))
|
||||
logs = "file";
|
||||
|
||||
if (logs == "file") {
|
||||
if (logs == "syslog") {
|
||||
// use syslog only no stdout
|
||||
StartSyslog();
|
||||
} else if (logs == "file") {
|
||||
if (logfile == "")
|
||||
logfile = i2p::fs::DataDirPath("i2pd.log");
|
||||
StartLog (logfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue