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