Module Message_templates.Types

Core types for Message Templates

type operator =
  1. | Default
  2. | Structure
  3. | Stringify
type hole = {
  1. name : string;
  2. operator : operator;
  3. format : string option;
  4. alignment : (bool * int) option;
    (*

    (is_negative, width)

    *)
}
type template_part =
  1. | Text of string
  2. | Hole of hole
type parsed_template = template_part list
type property = string * Yojson.Safe.t

Property type for log events: name-value pair with JSON value

type property_list = property list

List of properties

val string_of_operator : operator -> string

Convert operator to string for debugging

val string_of_hole : hole -> string

Convert a hole to string representation

val reconstruct_template : parsed_template -> string

Reconstruct a template from parsed parts