Module Log_extended.For_testing
val create_output : map_output:(string -> string) -> Async_unix__Log.Output.tcreate_output ~map_outputcreates aLog.Output.twhich will print onlyMessage.messageto stdout, discarding any information about tags, levels, or timestamps.map_outputwill be applied to each string before printing, and is expected to be used to replace portions of output or identify which log a message came from.This function is best used with existing Log.ts, e.g. to replace Log.Global's outputs in expect tests. If you just want a full Log.t, see
createbelow.
val create : map_output:(string -> string) -> Async_unix__Log.Level.t -> Async_unix__Log.tcreate_log ~map_output levelcreates aLog.twith its level set tolevelusing the output returned bycreate_output, and anon_errorvalue of `Raise.