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. diffast-git-cli
  84. diskuvbox
  85. distributed-lwt
  86. distributed-uwt
  87. dkim
  88. dkim-bin
  89. dkim-mirage
  90. dkml-install-installer
  91. dkml-install-runner
  92. dmarc
  93. dns >= "4.4.1"
  94. dns-certify
  95. dns-cli
  96. dns-client < "7.0.3"
  97. dns-forward
  98. dns-resolver >= "10.1.0"
  99. dns-server
  100. dnssd
  101. dnssec
  102. dockerfile-cmd
  103. docteur
  104. docteur-unix
  105. dolmen_lsp
  106. dream
  107. dream-cli
  108. duff < "0.3"
  109. dune-release
  110. dunolint
  111. earlybird
  112. eio_linux
  113. electrod
  114. eliom >= "12.0.0"
  115. elm_playground_native
  116. ethernet
  117. facteur
  118. forester >= "5.0"
  119. functoria
  120. git
  121. git-cohttp
  122. git-cohttp-unix
  123. git-kv >= "0.2.0"
  124. git-mirage
  125. git-paf
  126. git-unix >= "3.2.0"
  127. github-hooks
  128. glicko2
  129. guardian
  130. happy-eyeballs
  131. happy-eyeballs-lwt
  132. happy-eyeballs-miou-unix
  133. happy-eyeballs-mirage
  134. http-lwt-client
  135. httpcats
  136. hvsock
  137. index < "1.6.1"
  138. index-bench >= "1.4.0"
  139. irc-client >= "0.7.0"
  140. irky
  141. irky-eio
  142. irmin
  143. irmin-bench
  144. irmin-chunk
  145. irmin-cli
  146. irmin-client
  147. irmin-fs
  148. irmin-git
  149. irmin-graphql
  150. irmin-http
  151. irmin-layers
  152. irmin-pack
  153. irmin-server
  154. irmin-test
  155. irmin-unix
  156. irmin-watcher
  157. jupyter
  158. jupyter-kernel >= "0.6"
  159. kappa-library
  160. kaun < "1.0.0~alpha3"
  161. kmt
  162. lambda-runtime
  163. lambda-term >= "3.3.1"
  164. ldp
  165. letsencrypt
  166. letsencrypt-app
  167. letsencrypt-dns
  168. linol >= "0.3"
  169. logs-async < "1.4"
  170. logs-async-reporter < "1.4"
  171. logs-ppx
  172. logs-syslog
  173. lwt-parallel
  174. MlFront_Cli < "2.3.1"
  175. MlFront_Codept
  176. MlFront_Errors
  177. MlFront_Logs
  178. MlFront_Tools
  179. mcrunch
  180. mdx
  181. mehari
  182. mehari-eio
  183. memtrace_viewer < "v0.15.0"
  184. metrics-lwt
  185. metrics-rusage
  186. mfat
  187. migra
  188. mimic
  189. miou
  190. mirage >= "4.0.0"
  191. mirage-block-combinators
  192. mirage-block-lwt
  193. mirage-block-unix
  194. mirage-block-xen
  195. mirage-channel >= "4.0.1"
  196. mirage-channel-lwt
  197. mirage-crypto-rng
  198. mirage-crypto-rng-async
  199. mirage-crypto-rng-eio
  200. mirage-crypto-rng-lwt
  201. mirage-crypto-rng-miou-unix
  202. mirage-crypto-rng-mirage
  203. mirage-crypto-rng-mkernel
  204. mirage-flow-combinators
  205. mirage-flow-lwt
  206. mirage-flow-unix
  207. mirage-logs
  208. mirage-monitoring
  209. mirage-nat
  210. mirage-net-macosx >= "1.2.0"
  211. mirage-net-solo5
  212. mirage-net-unikraft
  213. mirage-net-unix
  214. mirage-net-xen
  215. mirage-qubes
  216. mirage-runtime
  217. mirage-vnetif
  218. mirage-xen
  219. mkernel
  220. mlgpx
  221. mqtt
  222. mrmime >= "0.5.0"
  223. mssql
  224. mtbox
  225. multipart_form >= "0.2.0"
  226. multipart_form-eio
  227. multipart_form-lwt
  228. multipart_form-miou
  229. nsq
  230. nx >= "1.0.0~alpha3"
  231. nx-datasets
  232. obatcher
  233. obuilder
  234. ocgtk
  235. ocluster
  236. ocluster-worker
  237. ocplib-simplex >= "0.5"
  238. ocsigenserver >= "7.0.0"
  239. odoc-driver
  240. oenv
  241. oidc
  242. omigrate
  243. opam-ci
  244. opam-graph
  245. opam-repomin
  246. opentelemetry-client-cohttp-eio >= "0.90"
  247. opentelemetry-client-ocurl >= "0.90"
  248. opentelemetry-client-ocurl-lwt
  249. opentelemetry-logs
  250. opium
  251. oskel
  252. owork
  253. ozulip
  254. paf
  255. paf-cohttp
  256. pf-qubes
  257. pgx_lwt
  258. pgx_lwt_mirage
  259. piaf
  260. polymarket
  261. pplumbing < "0.0.16"
  262. pplumbing-log
  263. pplumbing-log-cli
  264. ppx_irmin >= "3.0.0"
  265. progress >= "0.2.0"
  266. prometheus-app >= "1.0"
  267. protocol-9p
  268. protocol-9p-tool
  269. protocol-9p-unix
  270. pyro-caml-instruments
  271. qcow
  272. qcow-tool
  273. qcow-types
  274. randii
  275. rdf >= "0.13.0"
  276. rowex
  277. sendmail >= "0.2.0"
  278. shared-block-ring
  279. sihl < "0.2.0" | >= "0.3.0~rc2"
  280. sihl-core
  281. slipshow >= "0.3.0"
  282. smaws-lib
  283. snf_mcp
  284. soupault
  285. spin >= "0.6.0"
  286. spoke
  287. starred_ml
  288. statocaml
  289. stem
  290. stk
  291. stk_iconv
  292. stog >= "0.20.0"
  293. swapfs
  294. syslog-rfc5424 < "0.2"
  295. tar-unix >= "3.5.0"
  296. tcpip
  297. testcontainers
  298. timmy-lwt
  299. tiny_httpd >= "0.16"
  300. tiny_httpd_camlzip >= "0.16"
  301. tiny_httpd_eio
  302. tls >= "0.12.8"
  303. tls-eio >= "0.17.5"
  304. toc
  305. topkg-care
  306. twirp_core
  307. um-abt
  308. uring
  309. uspf
  310. utcp
  311. utop >= "2.10.0"
  312. vendredi
  313. wayland
  314. webauthn
  315. win-eventlog
  316. x509 >= "0.11.2"
  317. xapi-stdext-pervasives
  318. xtmpl >= "1.0.0"
  319. yaml
  320. yocaml >= "2.4.0"
  321. yocaml_runtime
  322. 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"