Figure out how to get calling module and function automatically
Closed this issue · 4 comments
oubiwann commented
Right now, if you want the module and function to show up in the logged message, you need to manually include them when calling the log function. We should figure out how to do this automatically in LFE (with macros?) like lager does with Erlang parse transforms.
oubiwann commented
I think I ended up solving this using some Erlang utility functions ...
oubiwann commented
Yup; see the caller
functions in https://github.com/lfex/logjam/blob/master/src/logjam.lfe
oubiwann commented
Oops, nope. Reopening ....
oubiwann commented
LFE 2.0 supports parse transforms. The new logjam macros in the branch release/1.0.x
support m:f/a:line
in log output.