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
  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-crypto-rng-mkernel
  197. mirage-flow-combinators
  198. mirage-flow-lwt
  199. mirage-flow-unix
  200. mirage-logs
  201. mirage-monitoring
  202. mirage-nat
  203. mirage-net-macosx >= "1.2.0"
  204. mirage-net-solo5
  205. mirage-net-unikraft
  206. mirage-net-unix
  207. mirage-net-xen
  208. mirage-qubes
  209. mirage-runtime
  210. mirage-vnetif
  211. mirage-xen
  212. mkernel
  213. mlgpx
  214. mqtt
  215. mrmime >= "0.5.0"
  216. mssql
  217. multipart_form >= "0.2.0"
  218. multipart_form-eio
  219. multipart_form-lwt
  220. multipart_form-miou
  221. nsq
  222. nx-datasets
  223. obatcher
  224. obuilder
  225. ocluster
  226. ocluster-worker
  227. ocplib-simplex >= "0.5"
  228. odoc-driver
  229. oenv
  230. oidc
  231. omigrate
  232. opam-ci
  233. opam-graph
  234. opam-repomin
  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. rowex
  263. sendmail >= "0.2.0"
  264. shared-block-ring
  265. sihl < "0.2.0" | >= "0.3.0~rc2"
  266. sihl-core
  267. simple_httpd_caqti
  268. slipshow >= "0.3.0"
  269. smaws-lib
  270. snf_mcp
  271. soupault
  272. spin >= "0.6.0"
  273. spoke
  274. starred_ml
  275. statocaml
  276. stk
  277. stk_iconv
  278. stog >= "0.20.0"
  279. swapfs
  280. syslog-rfc5424
  281. tcpip
  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. utcp
  294. utop >= "2.10.0"
  295. vendredi
  296. vif
  297. vpnkit
  298. wayland
  299. webauthn
  300. win-eventlog
  301. x509 >= "0.11.2"
  302. xapi-stdext-pervasives
  303. xtmpl >= "1.0.0"
  304. yaml
  305. yocaml >= "2.4.0"
  306. yocaml_runtime
  307. 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"