mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
add syslog logging option
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user