package logs

  1. Overview
  2. Docs
Logging infrastructure for OCaml

Install

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

Innovation. Community. Security.