通过将哨兵定义为日志通道,如何将消息随意记录到哨兵中?

时间:2020-04-06 13:54:07

标签: php laravel logging sentry

在laravel应用程序中,我需要使用默认日志将消息任意记录到哨兵中,例如:

Log::channel('sentry')->error('Something wicked comes this way');

但是,关于laravel哨兵库的文档都没有显示如何做到这一点,如:

  1. https://sentry.io/for/laravel/
  2. https://docs.sentry.io/platforms/php/laravel/

没有办法做到这一点。那么您是否知道该怎么做?

0 个答案:

没有答案