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