struct
include Docout.Make_logger (struct
type ('a, 'b) result = 'a
let debug_level () = !global_debug_level
let with_color () = !global_with_color
let line_width = 72
let indent = 4
let print_string s =
!global_log_print_string s
let do_nothing () = ()
let name = "ketrew"
end)
let a f x = s (f x)
let to_long_string = to_string ~line_width:max_int ~indent:4
let if_color color log =
if !global_with_color then color log else log
let nbsp = s " "
let quote = sf "%S"
let sexp sexp_of_t t = s (sexp_of_t t |> Sexplib.Sexp.to_string)
let uri theuri = s (Uri.to_string theuri)
end