package b0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.memo/B0_memo_cli/Log/index.html
Module B0_memo_cli.LogSource
B0_memo_log interaction
Log formatters
pp_stats sel formats statistics stored in the log using query to select operations that are part of the statistics. If hashed_size the sum of the size of the files in file_hashes is computed (this accesses the file system in a non-fatal way in case of errors).
The type for output format.
val pp :
?sep:unit B0_std.Fmt.t ->
format:format ->
output_details:B0_std_cli.output_details ->
query:Op.query ->
path:B0_std.Fpath.t ->
unit ->
B0_memo_log.t B0_std.Fmt.tpp ~format ~output_details quer ~path formats a log as follows:
formatspecifies how the log is rendered.output_detailsspecifies how much details should be rendered.queryindicates which operations of the log must be formatted.pathis used when`Pathis requested (XXX what does that mean ?)sepis formatted at the end iff something is formated. Defaults toB0_std.Fmt.cut.
out_format_cli ~docs () are mutually exclusive options to specify alternate output formats. docs is the manual section in which options are documented, defaults to s_output_format_options
s_output_format_options is "OUTPUT FORMAT OPTIONS".
Log file
filename is "_log" the default log file name in the b0 directory.
val file :
?opts:string list ->
?docs:string ->
?doc:string ->
?doc_absent:string ->
?env:Cmdliner.Cmd.Env.info ->
unit ->
B0_std.Fpath.t option Cmdliner.Term.tfile ~doc_none ~docs ~doc ~env is a cli interface for specifing a memo log file.
optsare the cli options to specify it, defaults to["log-file"].docsis where the option is documented, defaults toCmdliner.Manpage.s_common_optionsdocis a doc string.doc_absentdescribes how the value is determined if the term is evaluates toNone.envis a variable that can be used to override the default value, defaults tocache_dir_env.
file_env is "B0_LOG_FILE".