Skip to content

bougueil/jop_erl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang JOP: an in-memory key value logger.

2015 Renaud Mariana.

Version: 1.0.0.

Erlang JOP

Erlang JOP logs key-values in an ETS table that is eventually written in 2 files: One file contains values sorted by time and the other, values sorted by keys. So it's very easy to read one or the other log files and concentrate on temporal or spatial issues.

The logger can be called by any process.

Usage:

Its usage is very simple.

Tab = mynewlog,
true = jop:init(Tab),

jop:log(Tab, issue_aa, {vv,112}),
...
Fn = jop:dump(Tab),

[io:format("~nContent of ~s:~n~s",[Fn++E,element(2,file:read_file(Fn++E))]) || E <- ["dates", "keys"]].

Build

$ make

About

(fast) log in ets {key, operation}

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published