Adam Posted May 23, 2017 Report Posted May 23, 2017 How does everyone do logging in their custom module and plugin? Does Blesta have some common log controller we can call into? Or does everyone roll their own logging software? I see that CORE-1847 has made it into the next release (4.1). May we assume that modules and plugins will be able to use this? Thanks, -Adam Quote
activa Posted May 24, 2017 Report Posted May 24, 2017 Modules has it own log in logs . You can see cpanel module or any other module they log request as input/output . For plugins i never found a logs for them . Quote
Paul Posted May 24, 2017 Report Posted May 24, 2017 See https://docs.blesta.com/display/dev/Module+Methods, specifically calls to the method $this->log. Good question regarding monolog. I imagine extensions would be able to use the logger as well, we should consider putting together some documentation for that. Our plans are to do more internal logging over time using the new logger. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.