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