package easy_logging_yojson

  1. Overview
  2. Docs
type config = Easy_logging__Handlers.FileHandler.config = {
  1. logs_folder : string;
  2. truncate : bool;
  3. file_perms : int;
  4. date_prefix : string option;
  5. versioning : int option;
  6. suffix : string;
}
val default_config : config
val generate_prefix : config -> string
val generate_filename : config -> string -> string
val create_file : config -> string -> Stdlib.out_channel
val make : ?config:config -> Easy_logging__.Logging_types.level -> string -> Easy_logging__Handlers.t
val make_rotating : ?config:config -> Easy_logging__.Logging_types.level -> string -> int -> int -> Easy_logging__Handlers.t
type config_ = config = {
  1. logs_folder : string;
  2. truncate : bool;
  3. file_perms : int;
  4. date_prefix : string option;
  5. versioning : int option;
  6. suffix : string;
}
val config__to_yojson : config_ -> Yojson.Safe.t
val config__of_yojson : Yojson.Safe.t -> config_ Ppx_deriving_yojson_runtime.error_or
val config_to_yojson : config_ -> Yojson.Safe.t
val config_of_yojson : Yojson.Safe.t -> config_ Ppx_deriving_yojson_runtime.error_or
OCaml

Innovation. Community. Security.