Internal_event_unix.Configurationinclude module type of struct include Tezos_base.Internal_event_config endThe JSON-file-friendly definition of the configuration of the internal-events framework. It allows one to activate registered event sinks.
FIXME: https://gitlab.com/tezos/tezos/-/issues/4850 Config override default values, but the env TEZOS_EVENTS_CONFIG does not. Is that what we want ?
type t = Tezos_base.Internal_event_config.tval empty : tThe empty configuration. It doesn't activate any sink.
val make_config_uri :
?level:Tezos_event_logging.Internal_event.Level.t ->
?daily_logs:int ->
?create_dirs:bool ->
?format:string ->
?chmod:int ->
?with_pid:bool ->
?colors:bool ->
?fresh:bool ->
?section_prefixes:
(string * Tezos_event_logging.Internal_event.level option) list ->
?advertise_levels:bool ->
[ `Stdout | `Stderr | `Path of string | `Null | `Syslog of string ] ->
Uri.tmake_config_uri kind builds a configuration URI using the optional parameters with the given kind. The arguments are the options documented in Tezos_stdlib_unix.File_descriptor_sink.
val stdout : tThe configuration with only an stdout sink.
val is_empty : t -> boolCheck if the configuration is empty.
val make_custom : Uri.t list -> tAllows to make custom list of uris.
val encoding : t Data_encoding.tThe serialization format.
val apply : t -> unit Tezos_error_monad.Error_monad.tzresult Lwt.tRun Tezos_base.Internal_event.All_sinks.activate for every URI in the configuration.
val reapply : t -> unit Tezos_error_monad.Error_monad.tzresult Lwt.tClose all the sinks except "lwt-log://" and call apply.
val of_file : string -> t Tezos_base.TzPervasives.Error_monad.tzresult Lwt.tParse a json file at path into a configuration.