On 21.09.2020 14:10, Vitaly Repin wrote:
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.
Yes. But log4c uses glibc inside, looks like (Checked
src/appender_type_syslog.c)
I work in a project with its own logging framework. And I am in
position to change its implementation if needed.
Ehhh. Thought that if someone does "something like log4j", he would
indeed add remote syslog destination.
Anyway, implementing such thing should not be very hard given relative
simplicity of syslog RFC.
But indeed you're right, I assumed that there are more readily-available
C-based components for this as is usually the case with other languages.
_______________________________________________
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.