On 17.01.19 16:40, g4-l...@tonarchiv.ch wrote:
> 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
>
> [...]
>
> 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?

I just foundĀ  ssh_set_log_callback() , so gladly I was wrong and it's
not session-wise. But I think it still needs some sychnromization to
write to a file from several sessions?

Cheers,
Till


Reply via email to