module Kwsyslog:sig
..end
Copyright (C) 2002 Shawn Wagner <raevnos@pennmush.org>
Hacked by Keith Waclena <http://www.lib.uchicago.edu/keith/> to remove all dependencies on C; now pure OCaml code
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author(s): Shawn Wagner
typefacility =
[ `LOG_AUTH
| `LOG_AUTHPRIV
| `LOG_CONSOLE
| `LOG_CRON
| `LOG_DAEMON
| `LOG_FTP
| `LOG_KERN
| `LOG_LOCAL0
| `LOG_LOCAL1
| `LOG_LOCAL2
| `LOG_LOCAL3
| `LOG_LOCAL4
| `LOG_LOCAL5
| `LOG_LOCAL6
| `LOG_LOCAL7
| `LOG_LPR
| `LOG_MAIL
| `LOG_NEWS
| `LOG_NTP
| `LOG_SECURITY
| `LOG_SYSLOG
| `LOG_USER
| `LOG_UUCP ]
`LOG_USER
. You can set a new default with openlog, or give a specific facility per syslog call.typeflag =
[ `LOG_CONS | `LOG_NDELAY | `LOG_PERROR | `LOG_PID ]
`LOG_CONS
isn't implemented yet.typelevel =
[ `LOG_ALERT
| `LOG_CRIT
| `LOG_DEBUG
| `LOG_EMERG
| `LOG_ERR
| `LOG_INFO
| `LOG_NOTICE
| `LOG_WARNING ]
val set_logpath : string -> unit
val set_socktype : Unix.socket_type -> unit
Unix.SOCK_DGRAM
), call this with the proper one before openlog or syslogval openlog : string -> flag list -> facility -> unit
val syslog : ?fac:facility -> level -> string -> unit
val closelog : unit -> unit
val log : myself:string ->
?fac:facility -> ?lvl:level -> string -> unit