package topkg
The transitory OCaml software packager
Install
dune-project
Dependency
Authors
Maintainers
Sources
topkg-1.0.8.tbz
sha512=4b632b60137852bb72ff9c8cdc2e16ac5ece6473569e50963fef9c1e800a0933a516bea1107b04011645afa4a1e78893c82dbce0aa8de2970d4d6c6d0dd2fe02
doc/topkg/Topkg/Log/index.html
Module Topkg.Log
Topkg log.
Reporting levels
val level : unit -> level option
level ()
is the current reporting level.
val set_level : level option -> unit
set_level l
sets the current reporting level to l
.
val level_to_string : level option -> string
level_to_string l
converts l
to an unspecified human-readable US-ASCII string that can be parsed back by level_of_string
.
level_of_string s
parses the representation of level_to_string
from s
.
Log functions
type 'a msgf =
(?header:string -> ('a, Format.formatter, unit) format -> 'a) ->
unit
msg l (fun m -> m fmt ...)
logs with level l
a message formatted with fmt
.
val app : 'a msgf -> unit
app
is msg App
.
val err : 'a msgf -> unit
err
is msg Error
.
val warn : 'a msgf -> unit
err
is msg Warning
.
val info : 'a msgf -> unit
err
is msg Info
.
val debug : 'a msgf -> unit
err
is msg Debug
.
on_error_msg ~level r
is:
v
ifr = Ok v
use e
ifr = Error (`Msg e)
. As a side effecte
is logged with levellevel
(defaults toError
).
Monitoring
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page