[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Custom logging in libssh
[Thread Prev] | [Thread Next]
- Subject: Custom logging in libssh
- From: g4-lisz@xxxxxxxxxxxx
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 17 Jan 2019 16:40:49 +0100
- To: libssh@xxxxxxxxxx
Hi there, I try to accomplish two things: 1) My libssh client should run as a deamon. So logging should go to a file 2) I also want to use logging from my own code Concerning 1: I can't find an option to tell libssh where the logging should go. So I guess that I have to write a logging callback function of my own, right? Now it seems that logging is configured session-wise. So writing to the logfile must be synchronized in some way when I use several sessions in pthreads - right? Or is there an easy way for doing all this? Concerning 2: How is this done? One should use _ssh_log() for this purpose? Regards, Till
Re: Custom logging in libssh | g4-lisz@xxxxxxxxxxxx |