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?

Comments

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    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?

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    Think about it again: psr, monolog... I bet you get the answer by yourself! :+1:


Sign In or Register to comment.