https://github.com/yutopp/loga
Logging library for OCaml
https://github.com/yutopp/loga
logger ocaml-library
Last synced: 23 days ago
JSON representation
Logging library for OCaml
- Host: GitHub
- URL: https://github.com/yutopp/loga
- Owner: yutopp
- Created: 2017-08-13T13:05:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T04:26:21.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T03:04:32.582Z (about 1 month ago)
- Topics: logger, ocaml-library
- Language: OCaml
- Homepage:
- Size: 34.2 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loga
[](https://circleci.com/gh/yutopp/loga)
*WIP*
A logging library for OCaml.
# HOW TO INSTALL
```
opam install loga
```# How to use
Add a `loga` and `loga.ppx` to your dune file.
Example:
```
(libraries loga)
(preprocess (pps loga.ppx)
```Then you can use logger like below!
``` ocaml
let () =
[%loga.info "Hello %s %d" "world" 42];
```# How to develop
## Build
```
git clone [email protected]:yutopp/loga.git
cd loga
opam pin add loga . --strict
```## Run tests
```
dune runtest
```