HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

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

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    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()

  • Options

    Can't we use monolog for that?

  • Options
    R_JR_J Ex-Fanboy Munich Admin

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

Sign In or Register to comment.