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