ejabberd - Comments for "Problem using lager" https://www.ejabberd.im/node/15615 en Hi. Thanks for your answer. I https://www.ejabberd.im/node/15615#comment-62133 <p>Hi.</p> <p>Thanks for your answer.</p> <p>I solve it including in my modules the lager.hrl and into that file I add the line<br /> -define(LAGER,1)</p> <p>But before this I ensure that ejabber is running with lager support.</p> <p>Now my mods use lager for logs.</p> <p>Thanks again.</p> Thu, 12 Dec 2013 16:02:00 +0000 oscarif comment 62133 at https://www.ejabberd.im I've had the same problem, https://www.ejabberd.im/node/15615#comment-62127 <p>I've had the same problem, but just want to use any logger to rid off of that error.</p> <p>So i've found a solution:</p> <p>1) You need to use full source code of ejabberd downloaded from github for example.<br /> 2) Put your mod's .erl files into src/ directory of ejabberd source tree, you've just downloaded.<br /> 3) run ./configure from the root directory of source code tree.<br /> 4) run make from same root dir.<br /> 5) you'll get your mod's beam files in source tree ebin/ directory.<br /> 6) Your mod will use p1_logger, now.</p> <p>But for all of this to work you'll need all software/libraries for building full ejabberd installation:<br /> <noindex><a href="https://github.com/processone/ejabberd/blob/master/README" title="https://github.com/processone/ejabberd/blob/master/README" rel="nofollow" >https://github.com/processone/ejabberd/blob/master/README</a></noindex></p> Thu, 12 Dec 2013 07:24:28 +0000 Noodles comment 62127 at https://www.ejabberd.im