lfex/logjam

Figure out how to get calling module and function automatically

Closed this issue · 4 comments

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.

I think I ended up solving this using some Erlang utility functions ...

Oops, nope. Reopening ....

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.