ligo/simple-utils/logger.ml
2019-05-12 20:50:18 +00:00

12 lines
216 B
OCaml

module Stateful () : sig
val log : string -> unit
val get : unit -> string
end = struct
let logger = ref ""
let log : string -> unit =
fun s -> logger := !logger ^ s
let get () : string = !logger
end