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. eliom >= "12.0.0"
  113. elm_playground_native
  114. ethernet
  115. facteur
  116. forester >= "5.0"
  117. functoria
  118. git
  119. git-cohttp
  120. git-cohttp-unix
  121. git-kv >= "0.2.0"
  122. git-mirage
  123. git-paf
  124. git-unix >= "3.2.0"
  125. github-hooks
  126. glicko2
  127. guardian
  128. happy-eyeballs
  129. happy-eyeballs-lwt
  130. happy-eyeballs-miou-unix
  131. happy-eyeballs-mirage
  132. horned_worm
  133. http-lwt-client
  134. httpcats
  135. hvsock
  136. index < "1.6.1"
  137. index-bench >= "1.4.0"
  138. irc-client >= "0.7.0"
  139. irmin
  140. irmin-bench
  141. irmin-chunk
  142. irmin-cli
  143. irmin-client
  144. irmin-fs
  145. irmin-git
  146. irmin-graphql
  147. irmin-http
  148. irmin-layers
  149. irmin-pack
  150. irmin-server
  151. irmin-test
  152. irmin-unix
  153. irmin-watcher
  154. jupyter
  155. jupyter-kernel >= "0.6"
  156. kappa-library
  157. kaun < "1.0.0~alpha3"
  158. kmt
  159. lambda-runtime
  160. lambda-term >= "3.3.1"
  161. ldp
  162. letsencrypt
  163. letsencrypt-app
  164. letsencrypt-dns
  165. linol >= "0.3"
  166. logs-async >= "1.4"
  167. logs-async-reporter
  168. logs-ppx
  169. logs-syslog
  170. lwt-parallel
  171. MlFront_Cli < "2.3.1"
  172. MlFront_Codept
  173. MlFront_Errors
  174. MlFront_Logs
  175. MlFront_Tools
  176. mcrunch
  177. mdx
  178. mehari
  179. mehari-eio
  180. memtrace_viewer < "v0.15.0"
  181. metrics-lwt
  182. metrics-rusage
  183. mimic
  184. miou
  185. mirage >= "4.0.0"
  186. mirage-block-combinators
  187. mirage-block-lwt
  188. mirage-block-unix
  189. mirage-block-xen
  190. mirage-channel >= "4.0.1"
  191. mirage-channel-lwt
  192. mirage-crypto-rng
  193. mirage-crypto-rng-async
  194. mirage-crypto-rng-eio
  195. mirage-crypto-rng-lwt
  196. mirage-crypto-rng-miou-unix
  197. mirage-crypto-rng-mirage
  198. mirage-crypto-rng-mkernel
  199. mirage-flow-combinators
  200. mirage-flow-lwt
  201. mirage-flow-unix
  202. mirage-logs
  203. mirage-monitoring
  204. mirage-nat
  205. mirage-net-macosx >= "1.2.0"
  206. mirage-net-solo5
  207. mirage-net-unikraft
  208. mirage-net-unix
  209. mirage-net-xen
  210. mirage-qubes
  211. mirage-runtime
  212. mirage-vnetif
  213. mirage-xen
  214. mkernel
  215. mlgpx
  216. mqtt
  217. mrmime >= "0.5.0"
  218. mssql
  219. multipart_form >= "0.2.0"
  220. multipart_form-eio
  221. multipart_form-lwt
  222. multipart_form-miou
  223. nsq
  224. nx >= "1.0.0~alpha3"
  225. nx-datasets
  226. obatcher
  227. obuilder
  228. ocluster
  229. ocluster-worker
  230. ocplib-simplex >= "0.5"
  231. ocsigenserver >= "7.0.0"
  232. odoc-driver
  233. oenv
  234. oidc
  235. omigrate
  236. opam-ci
  237. opam-graph
  238. opam-repomin
  239. opentelemetry-logs
  240. opium
  241. oskel
  242. owork
  243. ozulip
  244. paf
  245. paf-cohttp
  246. pf-qubes
  247. pgx_lwt >= "1.0"
  248. pgx_lwt_mirage
  249. piaf
  250. polymarket
  251. pplumbing < "0.0.16"
  252. pplumbing-log
  253. pplumbing-log-cli
  254. ppx_irmin >= "3.0.0"
  255. progress >= "0.2.0"
  256. prometheus-app >= "1.0"
  257. protocol-9p
  258. protocol-9p-tool
  259. protocol-9p-unix
  260. qcow
  261. qcow-tool
  262. qcow-types
  263. randii
  264. rdf >= "0.13.0"
  265. rotor
  266. rowex
  267. sendmail >= "0.2.0"
  268. shared-block-ring
  269. sihl < "0.2.0" | >= "0.3.0~rc2"
  270. sihl-core
  271. simple_httpd_caqti
  272. slipshow >= "0.3.0"
  273. smaws-lib
  274. snf_mcp
  275. soupault
  276. spin >= "0.6.0"
  277. spoke
  278. starred_ml
  279. statocaml
  280. stk
  281. stk_iconv
  282. stog >= "0.20.0"
  283. swapfs
  284. syslog-rfc5424
  285. tcpip
  286. testcontainers
  287. timmy-lwt
  288. tiny_httpd >= "0.16"
  289. tiny_httpd_camlzip >= "0.16"
  290. tiny_httpd_eio
  291. tls >= "0.12.8"
  292. tls-eio >= "0.17.5"
  293. toc
  294. topkg-care
  295. twirp_core
  296. um-abt
  297. uring
  298. uspf
  299. utcp
  300. utop >= "2.10.0"
  301. vendredi
  302. vif
  303. wayland
  304. webauthn
  305. win-eventlog
  306. x509 >= "0.11.2"
  307. xapi-stdext-pervasives
  308. xtmpl >= "1.0.0"
  309. yaml
  310. yocaml >= "2.4.0"
  311. yocaml_runtime
  312. 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"