Page
Library
Module
Module type
Parameter
Class
Class type
Source
LucidSourceLucid is a super simple logging library.
Converts Level to Int
Debug -> 1
Info -> 2
Warn -> 3
Error -> 4
Fatal -> 5set_level Warn will set enable logging for Warn and the levels above it.
Disables timestamps, timestamps can be enabled again using set_tz.
debug "message" will log message with the level Debug.
info "message" will log message with the level Info.
warn "message" will log message with the level Warn.
error "message" will log message with the level Error.
fatal "message" will log message with the level Fatal.
Same as fatal
critical "message" will log message with the level Fatal.
Set foreground color of the logging label for a certain level.
Same as set_color_fg but uses bright colors.
Set background color of the logging label for a certain level.
Same as set_color_bg but uses bright colors.
get_color Error will return a 2-tuple string * string where the first string corresponds to the foreground color of the level Error and second to the background color.
Gets the number of times a certain level has been successfully called to log.
Gets the number of times a certain level has actually logged.