Adam Posted May 23, 2017 Report Share 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 Link to comment Share on other sites More sharing options...
activa Posted May 24, 2017 Report Share 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 Link to comment Share on other sites More sharing options...
Paul Posted May 24, 2017 Report Share 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 Link to comment Share on other sites More sharing options...
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.