ddclient icon indicating copy to clipboard operation
ddclient copied to clipboard

Add an option to send logs to its own log file and not syslog

Open Sopor opened this issue 4 years ago • 5 comments

I would be able to log ddclient to its own log file and not to syslog when i run it as a daemon.

Is it possible to add an options for this?

Sopor avatar Mar 27 '22 21:03 Sopor

Did you try setting syslog=no?

SuperSandro2000 avatar Mar 29 '22 14:03 SuperSandro2000

Yes, but i can't see any log files. What should the name of the log file be, ddclient.log?

Was it you guessing or should it really work? 😊

Sopor avatar Mar 29 '22 19:03 Sopor

It probably just logs to stdout which you would need to redirect to a file.

Was it you guessing or should it really work?

Just guessing. If the option is not working it should be fixed but I don't really have time for it right now.

SuperSandro2000 avatar Mar 29 '22 22:03 SuperSandro2000

Fiddling around like this was something i wanted to avoid. It should be easy as changing a no to yes ddclientlog=yes and it should create its own log file.

I have no idea how i redirect to a file when running it as a daemon 😞

Sopor avatar Mar 30 '22 15:03 Sopor

I think you might be able to set daemon to no and then leave in the foreground and log to wherever you want. I am not going to add new options to log to some file because ddclient is already bloated to much.

SuperSandro2000 avatar Apr 27 '22 19:04 SuperSandro2000