https://github.com/yutopp/loga
Logging library for OCaml
https://github.com/yutopp/loga
logger ocaml-library
Last synced: 11 months ago
JSON representation
Logging library for OCaml
- Host: GitHub
- URL: https://github.com/yutopp/loga
- Owner: yutopp
- Created: 2017-08-13T13:05:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T04:26:21.000Z (about 6 years ago)
- Last Synced: 2025-04-12T07:51:48.425Z (about 1 year 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 git@github.com:yutopp/loga.git
cd loga
opam pin add loga . --strict
```
## Run tests
```
dune runtest
```