Skip to content

A small ppx that adds source code location to your Logs calls.

Notifications You must be signed in to change notification settings

NightBlues/ppx_logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppx_logs

A small ppx that adds source code location to your Logs calls.

Usage

[%logs "const info"];
[%logs.err "const error #%d" 1]

Will be transformed into

Logs.info (fun m_1000 -> m_1000 "test/example.ml:6 const info");
Logs.err (fun m_1001 -> m_1001 "test/example.ml:7 const error #%d" 1)

For other examples look test/example.ml or test/test_ppx.ml

Installation

opam pin ppx_logs -k git git+https://github.com/nightblues/ppx_logs.git

About

A small ppx that adds source code location to your Logs calls.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published