package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

logs-0.8.0.tbz
sha512=c34c67b00d6a989a2660204ea70db8521736d6105f15d1ee0ec6287a662798fe5c4d47075c6e7c84f5d5372adb5af5c4c404f79db70d69140af5e0ebbea3b6a5

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: 17 Mar 2025

README

Logs — Logging infrastructure for OCaml

v0.8.0

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

If you installed Logs with opam sample programs are located in the directory opam config var logs:doc.

Dependencies (4)

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