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