ligo/vendors/ligo-utils/simple-utils/logger.ml

12 lines
216 B
OCaml
Raw Normal View History

2019-05-13 00:46:25 +04:00
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