An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Loga

[![Loga](https://circleci.com/gh/yutopp/loga.svg?style=svg)](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
```