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

Re: Custom logging in libssh

On 17.01.19 17:02, g4-lisz@xxxxxxxxxxxx wrote:
> 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?

Hello again

It seems that I have to set log callback and verbositiy level once in
each thread, to make it work as expected. And even in signal handlers,
if you need logging from there:


But it's still a bit confusing, because a slighty different logging
callback function can also be set with

  ssh_options_set(session, SSH_OPTIONS_LOG_CALLBACK, cb_logfunc);

I'm not sure why there are two ways to do the same. But probably it's
not exactly the same, so what's the difference?


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