Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

It doesn log all the messages to /var/adm/syslog – why not?

Adm log Messages syslog var
0
Posted

It doesn log all the messages to /var/adm/syslog – why not?

0

First of all, the LOG_EMERG can not be used with user processes and should return -1 (if you check the return status). This is not documented in the man page! All the other messages should appear, but your /etc/syslog.conf file might not be configured correctly. To test it, replace the /etc/syslog.conf with the following line: *.debug /var/adm/syslog Then do: kill -HUP `cat /etc/syslog.pid` Then run the test program and then tail the /var/adm/syslog file and you should see all the messages, ie: Nov 23 09:02:54 orca syslogd: restart Nov 23 09:02:58 orca syslog: This is an alert message Nov 23 09:02:58 orca syslog: This is a critical message Nov 23 09:02:58 orca syslog: This is an error message Nov 23 09:02:58 orca syslog: This is a warning Nov 23 09:02:58 orca syslog: This is a notice Nov 23 09:02:58 orca syslog: This is an informal message Nov 23 09:02:58 orca syslog: This is a debug message —————————— Subject: 6.1.6 How can I get C programs to automatically generat

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123