Lager - Parse Transforms

1.3k Views Asked by At

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.

1

There are 1 best solutions below

0
On

try add into your module

-compile({parse_transform, lager_transform}).

and show rebar.config and your code