[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Custom logging in libssh
[Thread Prev] | [Thread Next]
- Subject: Re: Custom logging in libssh
- From: g4-lisz@xxxxxxxxxxxx
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 17 Jan 2019 18:57:39 +0100
- To: libssh@xxxxxxxxxx
On 17.01.19 17:29, Andreas Schneider wrote: > On Thursday, January 17, 2019 5:02:24 PM CET g4-lisz@xxxxxxxxxxxx wrote: >> On 17.01.19 16:40, g4-lisz@xxxxxxxxxxxx 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? > We don't have that even in libssh. We just log what comes in and yes, it is > possible that logs from sessions might be mixed ... > > > Andreas Ok :-) Thanks for the fast reply. I was also worried that writing one and the same file handle is not thread safe. But it's not an issue, at least not on *nixes. Till >
Re: Custom logging in libssh | g4-lisz@xxxxxxxxxxxx |
Custom logging in libssh | g4-lisz@xxxxxxxxxxxx |
Re: Custom logging in libssh | g4-lisz@xxxxxxxxxxxx |
Re: Custom logging in libssh | Andreas Schneider <asn@xxxxxxxxxxxxxx> |