summaryrefslogtreecommitdiff
path: root/2025/ocaml/lib/application/logger.ml
blob: 3d63201da7982578d07d9db836b8bcb816242801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module type LoggerType = sig
  type 'a t

  val app : 'a t -> unit

  val err : 'a t -> unit

  val warn : 'a t -> unit

  val info : 'a t -> unit

  val debug : 'a t -> unit
end

module type S = sig
  type 'a t

  val app : 'a t -> unit

  val err : 'a t -> unit

  val warn : 'a t -> unit

  val info : 'a t -> unit

  val debug : 'a t -> unit
end

module Make (Logger : LoggerType) : S with type 'a t := 'a Logger.t = struct
  let app = Logger.app

  let err = Logger.err

  let warn = Logger.warn

  let info = Logger.info

  let debug = Logger.debug
end