Module Mavryk_shell_services.Protocol_logging

val make_asynchronous_log_message_consumer : unit -> Mavryk_base.TzPervasives.Internal_event.level -> string -> unit

make_asynchronous_log_message_consumer () returns a function that can be used with the Protocol's set_log_message_consumer. The partial application (with a single () argument) sets up the necessary machinery (message buffer, error management, etc.) to handle the protocol's messages.

val make_log_message_consumer : unit -> Mavryk_base.TzPervasives.Internal_event.level -> string -> unit

make_log_message_consumer () returns a function that can be used with the Protocol's set_log_message_consumer. This implementation is synchronous.