Parent Directory | Revision Log | Patch
revision 1.9 by hauk, Tue Apr 29 21:28:53 2003 UTC | revision 1.10 by rory, Wed Jun 4 01:38:14 2003 UTC | |
---|---|---|
# | Line 128 void log(const char *format, ...) { | Line 128 void log(const char *format, ...) { |
128 | ||
129 | if(Run.use_syslog) { | if(Run.use_syslog) { |
130 | ||
131 | syslog(LOG_ERR|LOG_USER, "%s", msg); | syslog(LOG_ERR, "%s", msg); |
132 | ||
133 | } else if(LOG) { | } else if(LOG) { |
134 | ||
# | Line 154 void log_close() { | Line 154 void log_close() { |
154 | ||
155 | if(Run.use_syslog) { | if(Run.use_syslog) { |
156 | ||
157 | closelog(); | closelog(); |
158 | ||
159 | } | } |
160 | ||
# | Line 180 static int open_log() { | Line 180 static int open_log() { |
180 | ||
181 | if(Run.use_syslog) { | if(Run.use_syslog) { |
182 | ||
183 | openlog(prog, LOG_PID, LOG_USER); | openlog(prog, LOG_PID, Run.facility); |
184 | ||
185 | } else { | } else { |
186 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |