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. ocsipersist-dbm >= "2.1.0"
  241. ocsipersist-pgsql >= "2.1.0"
  242. ocsipersist-sqlite >= "2.1.0"
  243. odoc-driver
  244. oenv
  245. oidc
  246. omigrate
  247. opam-ci
  248. opam-graph
  249. opam-repomin
  250. opentelemetry-client-cohttp-eio >= "0.90"
  251. opentelemetry-client-ocurl >= "0.90"
  252. opentelemetry-client-ocurl-lwt
  253. opentelemetry-logs
  254. opium
  255. oskel
  256. owork
  257. ozulip
  258. paf
  259. paf-cohttp
  260. pf-qubes
  261. pgx_lwt
  262. pgx_lwt_mirage
  263. piaf
  264. polymarket
  265. pplumbing < "0.0.16"
  266. pplumbing-log
  267. pplumbing-log-cli
  268. ppx_irmin >= "3.0.0"
  269. progress >= "0.2.0"
  270. prometheus-app >= "1.0"
  271. protocol-9p
  272. protocol-9p-tool
  273. protocol-9p-unix
  274. pyro-caml-instruments
  275. qcow
  276. qcow-tool
  277. qcow-types
  278. randii
  279. rdf >= "0.13.0"
  280. resource-pooling >= "1.3"
  281. rowex
  282. sendmail >= "0.2.0"
  283. shared-block-ring
  284. sihl < "0.2.0" | >= "0.3.0~rc2"
  285. sihl-core
  286. slipshow >= "0.3.0"
  287. smaws-lib
  288. snf_mcp
  289. soupault
  290. spin >= "0.6.0"
  291. spoke
  292. starred_ml
  293. statocaml
  294. stem
  295. stk
  296. stk_iconv
  297. stog >= "0.20.0"
  298. swapfs
  299. syslog-rfc5424 < "0.2"
  300. tar-unix >= "3.5.0"
  301. tcpip
  302. testcontainers
  303. timmy-lwt
  304. tiny_httpd >= "0.16"
  305. tiny_httpd_camlzip >= "0.16"
  306. tiny_httpd_eio
  307. tls >= "0.12.8"
  308. tls-eio >= "0.17.5"
  309. toc
  310. topkg-care
  311. twirp_core
  312. um-abt
  313. uring
  314. uspf
  315. utcp
  316. utop >= "2.10.0"
  317. vendredi
  318. wayland
  319. webauthn
  320. win-eventlog
  321. x509 >= "0.11.2"
  322. xapi-stdext-pervasives
  323. xtmpl >= "1.0.0"
  324. yaml
  325. yocaml >= "2.4.0"
  326. yocaml_runtime
  327. 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"