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. mimic
  182. miou
  183. mirage >= "4.0.0"
  184. mirage-block-combinators
  185. mirage-block-lwt
  186. mirage-block-unix
  187. mirage-block-xen
  188. mirage-channel >= "4.0.1"
  189. mirage-channel-lwt
  190. mirage-crypto-rng
  191. mirage-crypto-rng-async
  192. mirage-crypto-rng-eio
  193. mirage-crypto-rng-lwt
  194. mirage-crypto-rng-miou-unix
  195. mirage-crypto-rng-mirage
  196. mirage-crypto-rng-mkernel
  197. mirage-flow-combinators
  198. mirage-flow-lwt
  199. mirage-flow-unix
  200. mirage-logs
  201. mirage-monitoring
  202. mirage-nat
  203. mirage-net-macosx >= "1.2.0"
  204. mirage-net-solo5
  205. mirage-net-unikraft
  206. mirage-net-unix
  207. mirage-net-xen
  208. mirage-qubes
  209. mirage-runtime
  210. mirage-vnetif
  211. mirage-xen
  212. mkernel
  213. mlgpx
  214. mqtt
  215. mrmime >= "0.5.0"
  216. mssql
  217. multipart_form >= "0.2.0"
  218. multipart_form-eio
  219. multipart_form-lwt
  220. multipart_form-miou
  221. nsq
  222. nx >= "1.0.0~alpha3"
  223. nx-datasets
  224. obatcher
  225. obuilder
  226. ocgtk
  227. ocluster
  228. ocluster-worker
  229. ocplib-simplex >= "0.5"
  230. ocsigenserver >= "7.0.0"
  231. odoc-driver
  232. oenv
  233. oidc
  234. omigrate
  235. opam-ci
  236. opam-graph
  237. opam-repomin
  238. opentelemetry-client-cohttp-eio >= "0.90"
  239. opentelemetry-client-ocurl >= "0.90"
  240. opentelemetry-client-ocurl-lwt
  241. opentelemetry-logs
  242. opium
  243. oskel
  244. owork
  245. ozulip
  246. paf
  247. paf-cohttp
  248. pf-qubes
  249. pgx_lwt
  250. pgx_lwt_mirage
  251. piaf
  252. polymarket
  253. pplumbing < "0.0.16"
  254. pplumbing-log
  255. pplumbing-log-cli
  256. ppx_irmin >= "3.0.0"
  257. progress >= "0.2.0"
  258. prometheus-app >= "1.0"
  259. protocol-9p
  260. protocol-9p-tool
  261. protocol-9p-unix
  262. qcow
  263. qcow-tool
  264. qcow-types
  265. randii
  266. rdf >= "0.13.0"
  267. rowex
  268. sendmail >= "0.2.0"
  269. shared-block-ring
  270. sihl < "0.2.0" | >= "0.3.0~rc2"
  271. sihl-core
  272. slipshow >= "0.3.0"
  273. smaws-lib
  274. snf_mcp
  275. soupault
  276. spin >= "0.6.0"
  277. spoke
  278. starred_ml
  279. statocaml
  280. stem
  281. stk
  282. stk_iconv
  283. stog >= "0.20.0"
  284. swapfs
  285. syslog-rfc5424 < "0.2"
  286. tcpip
  287. testcontainers
  288. timmy-lwt
  289. tiny_httpd >= "0.16"
  290. tiny_httpd_camlzip >= "0.16"
  291. tiny_httpd_eio
  292. tls >= "0.12.8"
  293. tls-eio >= "0.17.5"
  294. toc
  295. topkg-care
  296. twirp_core
  297. um-abt
  298. uring
  299. uspf
  300. utcp
  301. utop >= "2.10.0"
  302. vendredi
  303. wayland
  304. webauthn
  305. win-eventlog
  306. x509 >= "0.11.2"
  307. xapi-stdext-pervasives
  308. xtmpl >= "1.0.0"
  309. yaml
  310. yocaml >= "2.4.0"
  311. yocaml_runtime
  312. 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"