HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Error Logging
Hi, I want to log error in mongo db using Mono log. Can any one suggest me the best way ? Is There a specific Error Handler class exist where we can catch all types of errors. Will plugin be best for this?
0
Comments
There is a logger class in Vanilla (library/core/class.logger.php) and as far as I understand it, you should implement the PSR logger interface (/vendor/psr/log/Psr/Log/LoggerInterface.php) and add that class with Logger::addLogger()
Can't we use monolog for that?
Think about it again: psr, monolog... I bet you get the answer by yourself!