liblogfaf

Created February 11, 2014Updated December 2, 201653 Forks330 Stars16 Commits0 Open IssuesInfra

liblogfaf is a dynamic library that logs messages using non-blocking UDP datagrams.

liblogfaf is designed to be LD_PRELOAD-ed while starting a process that uses openlog() & syslog() functions to send syslog messages. It overrides logging functions to make log messages sent as UDP datagrams instead of getting written to /dev/log (which can block). This is useful for processes that call syslog() as part of their main execution flow and can therefore be easily broken when /dev/log buffer gets full, for example when the process that is expected to read from it (usually system syslog daemon like rsyslog or syslog-ng) stops doing that.

'faf' stands for fire-and-forget. Please note that liblogfaf should not be used in an environment where reliable log message delivery is required.

Created February 11, 2014Updated December 2, 201653 Forks330 Stars16 Commits0 Open IssuesInfra

Keep Updated

Stay up-to-date via RSS with the latest open source project releases from Facebook, news from our Engineering teams, and upcoming events.

Subscribe
Facebook © 2017