package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

logs-0.10.0.tbz
sha512=122b7a77bd07aee1e0cb8e07e82b195a12528cf015e72fa0dd5afaae26ce04bad9b29f32a6d3bd3547fe522b8a036608785e8adb900e31580a0d555719bbb7e7

Description

Logs provides a logging infrastructure for OCaml. Logging is performed on sources whose reporting level can be set independently. Log message report is decoupled from logging and is handled by a reporter.

A few optional log reporters are distributed with the base library and the API easily allows to implement your own.

Logs has no dependencies. The optional Logs_fmt reporter on OCaml formatters depends on Fmt. The optional Logs_browser reporter that reports to the web browser console depends on js_of_ocaml. The optional Logs_cli library that provides command line support for controlling Logs depends on Cmdliner. The optional Logs_lwt library that provides Lwt logging functions depends on Lwt

Logs and its reporters are distributed under the ISC license.

Home page: http://erratique.ch/software/logs

Tags

log system org:erratique

Published: 05 Nov 2025

README

Logs — Logging infrastructure for OCaml

Logs provides a logging infrastructure for OCaml. Logging is performed on sources whose reporting level can be set independently. Log message report is decoupled from logging and is handled by a reporter.

A few optional log reporters are distributed with the base library and the API easily allows to implement your own.

Logs has no dependencies. The optional Logs_fmt reporter on OCaml formatters depends on Fmt. The optional Logs_browser reporter that reports to the web browser console depends on js_of_ocaml. The optional Logs_cli library that provides command line support for controlling Logs depends on Cmdliner. The optional Logs_lwt library that provides Lwt logging functions depends on Lwt

Logs and its reporters are distributed under the ISC license.

Home page: http://erratique.ch/software/logs

Installation

Logs can be installed with opam:

    opam install logs
opam install fmt cmdliner lwt js_of_ocaml logs # Install all opt libraries

If you don't use opam consult the opam file for build instructions.

Documentation

The documentation can be consulted online or via odig doc logs.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Sample programs

A few tests can be found in the test directory.

Dependencies (4)

  1. topkg build & >= "1.1.0"
  2. ocamlbuild build
  3. ocamlfind build
  4. ocaml >= "4.14.0"

Dev Dependencies (1)

  1. mtime with-test

  1. acgtk
  2. activitypub
  3. albatross
  4. alcotest-lwt
  5. alcotest-mirage
  6. anthropic
  7. api-watch
  8. arp
  9. asl >= "0.8"
  10. awa
  11. awa-mirage
  12. aws-config
  13. benchpress
  14. benchpress-server
  15. bos
  16. builder
  17. builder-web
  18. bun >= "0.3.3"
  19. ca-certs
  20. ca-certs-nss
  21. cachet >= "0.0.4"
  22. cactus
  23. caisar
  24. calculon >= "0.6"
  25. caldav
  26. camltc
  27. capnp-rpc
  28. capnp-rpc-lwt < "2.0"
  29. capnp-rpc-net
  30. capnp-rpc-unix
  31. caqti >= "0.11.0"
  32. caqti-async >= "2.1.1"
  33. caqti-eio
  34. caqti-lwt
  35. caqti-miou
  36. caqti-mirage
  37. carton
  38. carton-git
  39. carton-lwt < "1.0.0"
  40. carton-miou
  41. carton-miou-unix
  42. catala-lsp
  43. catapult-daemon
  44. chamelon
  45. chamelon-unix
  46. chamo
  47. charrua-client
  48. charrua-unix >= "2.0.0"
  49. cmdtui-lambda-term
  50. cohttp >= "6.0.0~beta2"
  51. cohttp-async
  52. cohttp-eio >= "6.0.0"
  53. cohttp-lwt >= "2.1.3"
  54. cohttp-lwt-jsoo >= "5.3.0"
  55. cohttp-lwt-unix
  56. colibrics
  57. colombe < "0.2.0"
  58. commons >= "1.8.0"
  59. compsort
  60. conduit
  61. conduit-lwt-unix >= "2.3.0"
  62. conex < "0.10.0"
  63. conex-mirage-crypto
  64. craml
  65. css
  66. current >= "0.6.2"
  67. current-albatross-deployer
  68. current_docker
  69. current_examples
  70. current_git
  71. current_github
  72. current_gitlab
  73. current_ocluster
  74. current_rpc
  75. current_slack
  76. current_web
  77. dap
  78. datakit-server
  79. diffast-git-cli
  80. diskuvbox
  81. distributed-lwt
  82. distributed-uwt
  83. dkim
  84. dkim-bin
  85. dkim-mirage
  86. dkml-install-installer < "0.5.1"
  87. dkml-install-runner
  88. dmarc
  89. dns >= "4.4.1"
  90. dns-certify
  91. dns-cli
  92. dns-client < "7.0.3"
  93. dns-forward
  94. dns-resolver >= "10.1.0"
  95. dns-server
  96. dnssd
  97. dnssec
  98. dockerfile-cmd
  99. docteur
  100. docteur-unix
  101. dolmen_lsp
  102. dream
  103. dream-cli
  104. duff < "0.3"
  105. dune-release
  106. dunolint
  107. earlybird
  108. eio_linux
  109. electrod
  110. elm_playground_native
  111. ethernet
  112. facteur
  113. forester >= "5.0"
  114. functoria
  115. git
  116. git-cohttp
  117. git-cohttp-unix
  118. git-kv >= "0.2.0"
  119. git-mirage
  120. git-paf
  121. git-unix >= "3.2.0"
  122. github-hooks
  123. glicko2
  124. guardian
  125. happy-eyeballs
  126. happy-eyeballs-lwt
  127. happy-eyeballs-miou-unix
  128. happy-eyeballs-mirage
  129. horned_worm
  130. http-lwt-client
  131. httpcats
  132. hvsock
  133. index < "1.6.1"
  134. index-bench >= "1.4.0"
  135. irc-client >= "0.7.0"
  136. irmin
  137. irmin-bench
  138. irmin-chunk
  139. irmin-cli
  140. irmin-client
  141. irmin-fs
  142. irmin-git
  143. irmin-graphql
  144. irmin-http
  145. irmin-layers
  146. irmin-pack
  147. irmin-server
  148. irmin-test
  149. irmin-unix
  150. irmin-watcher
  151. jupyter
  152. jupyter-kernel >= "0.6"
  153. kappa-library
  154. kaun
  155. kmt
  156. lambda-runtime
  157. lambda-term >= "3.3.1"
  158. ldp
  159. letsencrypt
  160. letsencrypt-app
  161. letsencrypt-dns
  162. linol >= "0.3"
  163. logs-async >= "1.4"
  164. logs-async-reporter
  165. logs-ppx
  166. logs-syslog
  167. lwt-parallel
  168. MlFront_Cli < "2.3.1"
  169. MlFront_Codept
  170. MlFront_Errors
  171. MlFront_Logs
  172. MlFront_Tools
  173. mdx
  174. mehari
  175. mehari-eio
  176. memtrace_viewer < "v0.15.0"
  177. metrics-lwt
  178. metrics-rusage
  179. mimic
  180. miou
  181. mirage >= "4.0.0"
  182. mirage-block-combinators
  183. mirage-block-lwt
  184. mirage-block-unix
  185. mirage-block-xen
  186. mirage-channel >= "4.0.1"
  187. mirage-channel-lwt
  188. mirage-crypto-rng
  189. mirage-crypto-rng-async
  190. mirage-crypto-rng-eio
  191. mirage-crypto-rng-lwt
  192. mirage-crypto-rng-miou-unix
  193. mirage-crypto-rng-mirage
  194. mirage-flow-combinators
  195. mirage-flow-lwt
  196. mirage-flow-unix
  197. mirage-logs
  198. mirage-monitoring
  199. mirage-nat
  200. mirage-net-macosx >= "1.2.0"
  201. mirage-net-solo5
  202. mirage-net-unikraft
  203. mirage-net-unix
  204. mirage-net-xen
  205. mirage-qubes
  206. mirage-runtime
  207. mirage-vnetif
  208. mirage-xen
  209. mlgpx
  210. mqtt
  211. mrmime >= "0.5.0"
  212. mssql
  213. multipart_form >= "0.2.0"
  214. multipart_form-eio
  215. multipart_form-lwt
  216. multipart_form-miou
  217. nsq
  218. nx-datasets
  219. obatcher
  220. obuilder
  221. ocluster
  222. ocluster-worker
  223. ocplib-simplex >= "0.5"
  224. octez-distributed-lwt-internal
  225. octez-injector
  226. octez-internal-libs
  227. octez-libs
  228. octez-plonk
  229. odoc-driver
  230. oenv
  231. oidc
  232. omigrate
  233. opam-ci
  234. opam-graph
  235. opentelemetry-logs
  236. opium
  237. oskel
  238. owork
  239. ozulip
  240. paf
  241. paf-cohttp
  242. pf-qubes
  243. pgx_lwt >= "1.0"
  244. pgx_lwt_mirage
  245. piaf
  246. polymarket
  247. pplumbing < "0.0.16"
  248. pplumbing-log
  249. pplumbing-log-cli
  250. ppx_irmin >= "3.0.0"
  251. progress >= "0.2.0"
  252. prometheus-app >= "1.0"
  253. protocol-9p
  254. protocol-9p-tool
  255. protocol-9p-unix
  256. qcow
  257. qcow-tool
  258. qcow-types
  259. randii
  260. rdf >= "0.13.0"
  261. rotor
  262. sendmail >= "0.2.0"
  263. shared-block-ring
  264. sihl < "0.2.0" | >= "0.3.0~rc2"
  265. sihl-core
  266. simple_httpd_caqti
  267. slipshow >= "0.3.0"
  268. smaws-lib
  269. snf_mcp
  270. soupault
  271. spin >= "0.6.0"
  272. spoke
  273. starred_ml
  274. statocaml
  275. stk
  276. stk_iconv
  277. stog >= "0.20.0"
  278. swapfs
  279. syslog-rfc5424
  280. tcpip
  281. tezos-context >= "16.0"
  282. timmy-lwt
  283. tiny_httpd >= "0.16"
  284. tiny_httpd_camlzip >= "0.16"
  285. tls >= "0.12.8"
  286. tls-eio >= "0.17.5"
  287. toc
  288. topkg-care
  289. twirp_core
  290. um-abt
  291. uring
  292. uspf
  293. utop >= "2.10.0"
  294. vendredi
  295. vif
  296. vpnkit
  297. wayland
  298. webauthn
  299. win-eventlog
  300. x509 >= "0.11.2"
  301. xapi-stdext-pervasives
  302. xtmpl >= "1.0.0"
  303. yaml
  304. yocaml >= "2.4.0"
  305. yocaml_runtime
  306. yocaml_unix < "2.0.0"

Conflicts (3)

  1. fmt < "0.9.0"
  2. js_of_ocaml-compiler < "5.5.0"
  3. cmdliner < "1.3.0"