I have added Lager to my application using rebar. It compiles fine and Lager starts ok when I start my app. However, I get undef messages when I call lager:debug/1 which tells me that the lager_transform parse transformation is not being picked up, but I have added the following to my rebar.config:
{erl_opts, [{parse_transform, lager_transform}]}.
and I am of course compiling with rebar.
try add into your module
-compile({parse_transform, lager_transform}).
and show rebar.config and your code
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With