= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
DSL for logging messages. Opening this locally makes it easy to supply a number of semantic tags for a log event while using their values in the human-readable text. For example:
lwt_log_info Tag.DSL.(fun f ->
f "request for operations %a:%d from peer %a timed out."
-% t event "request_operations_timeout"
-% a Block_hash.Logging.tag bh
-% s operations_index_tag n
-% a P2p_peer.Id.Logging.tag pipeline.peer_id)
Use a semantic tag with a `%a` format, supplying the pretty printer from the tag.
Use a semantic tag with ordinary formats such as `%s`, `%d`, and `%f`.
val (-%) :
(?tags:set -> 'a) ->
('a, Format.formatter, unit, 'd) arg ->
?tags:set ->
'd
Perform the actual application of a tag to a format.