Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syslog_r for Linux?

Tags:

linux

syslog

Folks, I can't find the re-entrant version of syslog() for Linux...is there one? And if no, what do you? The obvious answer is to move logging facility into separate thread and serialise access to syslog...

like image 309
pachanga Avatar asked Jul 22 '09 05:07

pachanga


People also ask

What is syslogd in Linux?

Linux Syslog configuration One of the most important daemons on Unix or Linux based system is syslogd! It logs many crucial system events by default. Logs written by syslogdare commonly referred to as Syslog. Syslogs are first logs when you want to trace issues with your system.

Can I run a syslog server on Windows?

Once you have the Syslog messages circulating on the network, software running on Windows can pick them up, so you don’t have to stick to Syslog server software for Linux to collect these important messages. Many excellent Syslog servers are written to run on Windows.

How to rotate syslog in Linux?

You can manually rotate Syslog over a specific period or you can even use logrotateutility to do it automatically in the background. Testing Syslog logging To test if the daemon is logging messages in Syslog or not, you can use logger command.

What are the best syslog monitoring tools for Linux?

Opmantek opEvents (FREE TRIAL) A log file manager that is able to collect log messages from a range of sources, including Syslog. Installs on Linux. Paessler PRTG Network Monitor A comprehensive network, server, and application monitor that includes sensors for Syslog management.


1 Answers

According to the POSIX specification, the syslog function is already thread-safe, and so implemented in Linux. So syslog_r is unnecessary - use syslog if you need a reentrant logger function.

like image 150
Martin v. Löwis Avatar answered Sep 22 '22 06:09

Martin v. Löwis