2
* Copyright (C) 2006-2007 XenSource Ltd.
3
* Copyright (C) 2008 Citrix Ltd.
4
* Author Vincent Hanquez <vincent.hanquez@eu.citrix.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published
8
* by the Free Software Foundation; version 2.1 only. with the special
9
* exception on linking described in file LICENSE.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
17
type level = Emerg | Alert | Crit | Err | Warning | Notice | Info | Debug
18
type options = Cons | Ndelay | Nowait | Odelay | Perror | Pid
19
type facility = Auth | Authpriv | Cron | Daemon | Ftp | Kern
20
| Local0 | Local1 | Local2 | Local3
21
| Local4 | Local5 | Local6 | Local7
22
| Lpr | Mail | News | Syslog | User | Uucp
24
(* external init : string -> options list -> facility -> unit = "stub_openlog" *)
25
external log : facility -> level -> string -> unit = "stub_syslog"
26
external close : unit -> unit = "stub_closelog"