1 (* Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
9 (* From Tom 7 <twm@andrew.cmu.edu>. *)
10 (* A rather complete interface to the syslog facilities.
15 * .. for descriptions of these constants.
17 signature MLTON_SYSLOG =
32 val AUTHPRIV : facility
59 val WARNING : loglevel
64 (* Closelog is also optional. *)
65 val closelog: unit -> unit
67 (* log a message at a particular loglevel. *)
68 val log: loglevel * string -> unit
71 * Openlog opens a connection to the system logger.
72 * Calling openlog is optional but recommended.
74 * The string is prefixed to each message, and is typically set to the
77 val openlog: string * openflag list * facility -> unit