23 lines
451 B
Markdown
23 lines
451 B
Markdown
|
# xlog
|
||
|
|
||
|
logging library for cats written in ocaml
|
||
|
|
||
|
original code (most of the code here) from: <https://git.lain.faith/iitalics/talircd>, which is
|
||
|
released under LGPL-2.0-or-later. all modifications to the code in this repo are released under the
|
||
|
same license
|
||
|
|
||
|
## usage
|
||
|
|
||
|
```ocaml
|
||
|
include (val Xlog.logs __FUNCTION__)
|
||
|
|
||
|
let () =
|
||
|
info (fun m -> m "meow meow meow")
|
||
|
|
||
|
module Submodule = struct
|
||
|
include (val Xlog.logs __FUNCTION__)
|
||
|
|
||
|
(* ... *)
|
||
|
end
|
||
|
```
|