module Output:This module defines the concept of output, that is how an event is written to a channel. It is possible to register new outputs through thesig
..end
register
function. Initially, two outputs are registered:"file"
for file output;"void"
for an output actually discarding data.class type impl =object
..end
type
rotation = {
|
seconds_elapsed : |
(* | Number of seconds between two rotations. | *) |
|
signal_caught : |
(* | Number of signal provoking a rotation. | *) |
typet =
string -> rotation -> Layout.t lazy_t -> impl
val register : string -> t -> unit
register n o
registers the output o
with name n
,
replacing any existing output with the same name.val register_unnamed : t -> string
register
except that an unused name is generated and returned.val get : string -> t
get n
returns the output registered with name n
.
Raises Not_found
if no output exists with the passed name.
val void : t
val file : t
"<stdout>"
is interpreted as the standard output (rotation being
disabled);"<stderr>"
is interpreted as the standard error (rotation being
disabled);"$(time)"
is equivalent to "%";"$(pid)"
is substituted with process identifier;"$(hostname)"
is substituted with hostname identifier;"$(var)"
is substituted with environment variable named "var"
."BOLT_SILENT"
is not set
to either "YES"
or "ON"
- ignoring case).val growlnotify : t
growlnotify
command-line
utility.val bell : t
val say : t
say
command-line utility
(MacOS X).