package tezt
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=88c2d9d3da75ff554599bc34cbf5acbe
sha512=e60294514ecc4a989ce663ebb306e56f654dcfaffb7dbe5e3f05f5a13c9c2ff64dadde4a77b0d9a8567a76a6a7a2b25e0940ccd2a956ffcb85ff9300bfebe3bc
doc/tezt.core/Tezt_core/Log/Style/index.html
Module Log.StyleSource
Modify the style of the log outputs
Prefix the log message with a timestamp (Visible) or not (Hidden).
The function parameter of Visible receives a UNIX timestamp and shall format it as a string such as "HH:MM:SS.FFF". An example of such function is default_timestamp_format.
Prefix the log message with a prefix (Visible) or not (Hidden).
The function parameter of Visible receives the ~prefix argument of log functions and shall return how to print it, without brackets. Fun.id is typically used but you can also add colors, force character case, shorten prefixes which are too long etc.
Format the timestamp as HH:MM:SS.FFF.
Alias for Visible default_timestamp_format, or Hidden if --no-log-timestamp.
set_timestamp timestamp sets the style for the timestamp.