A | |
add [Logs.Tag] | add d v s is s with the tag (V (d, v)) added.
|
app [Logs.LOG] | app is msg App .
|
app [Logs] | app is msg App .
|
C | |
compare [Logs.Src] | compare src src' is a total order on sources.
|
console_reporter [Logs_browser] | console_reporter () logs message using the
browser console object at the corresponding level and uses
console.log for the App level.
|
create [Logs.Src] | create ?doc name is a new log source.
|
D | |
debug [Logs.LOG] | debug is msg Debug .
|
debug [Logs] | debug is msg Debug .
|
def [Logs.Tag] | def ~doc name pp is a tag definition.
|
default [Logs] | default is a logging source that is reserved for use by
applications.
|
doc [Logs.Tag] | doc d is d 's documentation string.
|
doc [Logs.Src] | doc src is src 's documentation string.
|
E | |
empty [Logs.Tag] | empty is the empty set.
|
equal [Logs.Src] | equal src src' is true iff src and src' are the same source.
|
err [Logs.LOG] | app is msg Error .
|
err [Logs] | err is msg Error .
|
err_count [Logs] | err_count () is the number of messages logged with level Error
across all sources.
|
F | |
find [Logs.Tag] | find d s is the tag value with definition d in s (if any).
|
fold [Logs.Tag] | fold f s acc is the result of folding f over the tags
of s starting with acc .
|
G | |
get [Logs.Tag] | get d s is like find d s but
|
I | |
info [Logs.LOG] | info is msg Info .
|
info [Logs] | info is msg Info .
|
is_empty [Logs.Tag] | is_empty s is true iff s is empty.
|
K | |
kmsg [Logs.LOG] | |
kmsg [Logs] | |
L | |
level [Logs_cli] | |
level [Logs.Src] | level src is the report level of src (if any).
|
level [Logs] | level () is the reporting level given to new sources.
|
list [Logs.Tag] | tag_list () is the list of currently existing tag definitions.
|
list [Logs.Src] | list () is the current exisiting source list.
|
M | |
mem [Logs.Tag] | mem d s is true iff s has a tag with definition d .
|
msg [Logs.LOG] | msg l fmt (fun m -> m ...) logs with level l a message
formatted with fmt .
|
msg [Logs] | msg ?src l fmt (fun m -> m ...) logs with level l on the source
src (defaults to Logs.default ) a message formatted with fmt .
|
N | |
name [Logs.Tag] | name d is d 's name.
|
name [Logs.Src] | name is src 's name.
|
nop_reporter [Logs] | nop_reporter is the initial reporter returned by Logs.reporter , it
does nothing if a log message gets reported.
|
O | |
on_error [Logs.LOG] | on_error ~level ~pp ~use r is:
v if r = `Ok v , use e if r = `Error e . As a side effect e is logged
with pp on level level (defaults to Logs.Error ).
|
on_error [Logs] | on_error ~level ~pp ~use r is:
v if r = Ok v , use e if r = Error e . As a side effect msg is logged
with pp on level level (defaults to Logs.Error ).
|
on_error_msg [Logs.LOG] | |
on_error_msg [Logs] | |
P | |
pp [Logs.Tag] | pp ppf t prints an unspecified representation of t on ppf .
|
pp [Logs.Src] | pp ppf src prints an unspecified representation of src on
ppf .
|
pp_def [Logs.Tag] | pp_def ppf d prints an unspecified representation of d on ppf .
|
pp_set [Logs.Tag] | pp_set ppf s prints an unspecified representation of s on ppf .
|
printer [Logs.Tag] | printer d is d 's type pretty-printer.
|
R | |
rem [Logs.Tag] | rem d s is s without the tag defined by d (if there was one).
|
reporter [Logs_stdo] | reporter ~prefix ~dst ~app () is a reporter that reports Logs.App
level messages on app (defaults to Format.std_formatter ) and
all other levels on dst (defaults to Format.err_formatter ).
|
reporter [Logs] | reporter () is the current repporter.
|
S | |
set_level [Logs.Src] | set_level src l sets the report level of src to l .
|
set_level [Logs] | set_level ?all l sets the reporting level given to
new sources.
|
set_reporter [Logs] | set_reporter r sets the current reporter to r .
|
src_log [Logs] | |
U | |
unit [Logs] | |
unit_msgf [Logs] | unit_msgf ?header ?tags () is (fun m -> m ?header ?tags) .
|
W | |
warn [Logs.LOG] | warn is msg Warning .
|
warn [Logs] | warn is msg Warning .
|
warn_count [Logs] | warn_count () is the number of messages logged with level
Warning across all sources.
|