1
votes

I tired to test a cowboy websocket handler, I compiled and run my application with:

make run

For Now I can just see my outputs (like io:format ...) but I can't see cowboy error/warning logs.

How can I enable error logging in cowboy ?

1

1 Answers

0
votes

I just had a quick look into the latest cowboy source code and it uses error_logger.

Thus, you could use the sasl application because it includes error_logger event handlers.

By configuring the sasl application (in the sys.config for instance) you control how, when and where are the logs are written.