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