[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom logging in libssh

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?


Re: Custom logging in libsshg4-lisz@xxxxxxxxxxxx
Archive administrator: postmaster@lists.cynapses.org