diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1996-05-23 01:05:25 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1996-05-23 01:05:25 +0000 |
| commit | 712dc76e87bd7bbeb3f781e690886b69a1f9c5ca (patch) | |
| tree | 20c0191307a05862d54f0d7211d2ee3ad63fa87a /lib/libc/gen/syslog.3 | |
| parent | 0a47b48b9f61ddbac24f3f22e1f266acdd493080 (diff) | |
Notes
Diffstat (limited to 'lib/libc/gen/syslog.3')
| -rw-r--r-- | lib/libc/gen/syslog.3 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/gen/syslog.3 b/lib/libc/gen/syslog.3 index 832fd9ce52e5..ab1bd9d8e59e 100644 --- a/lib/libc/gen/syslog.3 +++ b/lib/libc/gen/syslog.3 @@ -173,11 +173,15 @@ The same as but logged to a file readable only by selected individuals. .It Dv LOG_CRON -The clock daemon. +The cron daemon: +.Xr cron 8 . .It Dv LOG_DAEMON System daemons, such as .Xr routed 8 , that are not provided for explicitly by other facilities. +.It Dv LOG_FTP +The file transfer protocol daemon: +.Xr ftpd 8 . .It Dv LOG_KERN Messages generated by the kernel. These cannot be generated by any user processes. @@ -248,8 +252,10 @@ always returns the previous log mask level. .Bd -literal -offset indent -compact syslog(LOG_ALERT, "who: internal error 23"); -openlog("ftpd", LOG_PID, LOG_DAEMON); +openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP); + setlogmask(LOG_UPTO(LOG_ERR)); + syslog(LOG_INFO, "Connection from host %d", CallingHost); syslog(LOG_INFO|LOG_LOCAL2, "foobar error: %m"); |
