• Andrew Thompson's avatar
    Allow storage of persistant per-process lager metadata · 98143ae1
    Andrew Thompson authored
    For persistant processes with some immutable metadata (riak vnode and
    the vnode ID, for example), implement lager:md/0 and lager:md/1 for
    getting/setting such metadata into the process dictionary.
    
    Such metadata is automatically included in any lager message metadata,
    so you can just set it in your init() function or whatever and not have
    to worry about passing the data around and using it in every lager call.
    98143ae1
lager_test_backend.erl 59.5 KB