package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

logs-0.9.0.tbz
sha512=b75fb28e83f33461b06b5c9b60972c4a9a9a1599d637b4a0c7b1e86a87f34fe5361e817cb31f42ad7e7cbb822473b28fab9f58a02870eb189ebe88dae8e045ff

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

Innovation. Community. Security.