![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Major OS errors/Bash errors help!!!! | wcmmlynn | UNIX for Dummies Questions & Answers | 12 | 11-13-2007 01:50 AM |
| Detecting Second disk | dragunu | UNIX for Dummies Questions & Answers | 7 | 02-09-2007 01:45 AM |
| writing to multiple syslog facilities | dmirza | High Level Programming | 1 | 10-25-2005 02:52 PM |
| Adapter Errors and Link Errors | mcastill66 | AIX | 2 | 08-02-2005 03:51 PM |
| Adapter Errors and Link Errors | mcastill66 | UNIX for Advanced & Expert Users | 0 | 08-02-2005 03:11 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
detecting errors in writing to syslog
I am calling "void syslog(int, const char *, ...);" from my c++ application (definition taken from man page for syslog.h". Is there any way to detect that the syslog is not working, so that I can re-direct logging information to stderr?
Thanks in advance. David |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
It appears not. Which makes sense, in a way; this is the error logger, if it doesn't work, there's nothing to report an error to. Just to rule out the obvious, your're calling openlog before using syslog, yes?
|