Module Tiny_httpd_core.Log

Logging for tiny_httpd

val info : ((('a, Stdlib.Format.formatter, unit, unit) format4 -> 'a) -> unit) -> unit
val debug : ((('a, Stdlib.Format.formatter, unit, unit) format4 -> 'a) -> unit) -> unit
val error : ((('a, Stdlib.Format.formatter, unit, unit) format4 -> 'a) -> unit) -> unit
val setup : debug:bool -> unit -> unit

Setup and enable logging. This should only ever be used in executables, not libraries.

  • parameter debug

    if true, set logging to debug (otherwise info)

val dummy : bool