How do I add logs to MongooseIM logs?

56 Views Asked by At

I am trying to modify some APIs in MongooseIM and I want to see some logs. I tried adding lager-logging using MongooseIM, but the APIs stopped working after that.

1

There are 1 best solutions below

0
Chen Yu On

If you have source code, you can add debug statement into it and compile it to beam file then replace the old file. The debug statement is to write some log into log file. I have used this method solving the problem in rabbitmq before.