package tezt
Install
Dune Dependency
Authors
Maintainers
Sources
md5=7878acd788ae59f1a07d0392644f0fff
sha512=b9e8ce2576b0bc65870409380edf17b88656a985ceb9a438a84f479b51d6b30740acf7b035eccf7d122bf5227611bf15e888e607dcdbb1576b4383f12314dd49
doc/tezt.core/Tezt_core/Log/Style/index.html
Module Log.Style
Source
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.