package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

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