On 21.09.2020 12:32, Vitaly Repin wrote:
Hello,
Den mån 21 sep. 2020 kl 12:20 skrev Mariusz Kruk via rsyslog
<[email protected]>:
Why not log to local TCP socket?
glibc does not allow that. Is there any library I can use to log via TCP socket?
Well, there are many different logging frameworks. I suppose, since
you're looking into glibc sources, you're writing in C so I'd check, for
example log4c. Unless you're doing something very low-level, it's
usually useful to have a decent logging framework.
Of course I can cherry pick the code from rsyslog implementation
(imptcp module). But is it the easiest/best approach?
I am a little bit surprised that I was not able to find a ready-to-use
non-glibc implementation of a syslog client library for C/C++.
Maybe you're looking for a wrong thing. :-)
Logging framework is more than just a syslog client.
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.