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