Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lager - Parse Transforms

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.

like image 458
Myles McDonnell Avatar asked Apr 20 '26 02:04

Myles McDonnell


1 Answers

try add into your module

-compile({parse_transform, lager_transform}).

and show rebar.config and your code

like image 132
sleepwalker Avatar answered Apr 23 '26 07:04

sleepwalker



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!