简体   繁体   中英

Enable Cowboy error logs

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM