Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/hrms.ncriptech.com/vendor/sentry/sentry-laravel/src/Sentry/Laravel/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php namespace Sentry\Laravel; use Monolog\Handler\FingersCrossedHandler; use Monolog\Logger; use Illuminate\Log\LogManager; use Sentry\State\HubInterface; class LogChannel extends LogManager { /** * @param array $config * * @return Logger */ public function __invoke(array $config): Logger { $handler = new SentryHandler( $this->app->make(HubInterface::class), $config['level'] ?? Logger::DEBUG, $config['bubble'] ?? true, $config['report_exceptions'] ?? true, isset($config['formatter']) && $config['formatter'] !== 'default' ); if (isset($config['action_level'])) { $handler = new FingersCrossedHandler($handler, $config['action_level']); // Consume the `action_level` config option since newer Laravel versions also support this option // and will wrap the handler again in another `FingersCrossedHandler` if we leave the option set // See: https://github.com/laravel/framework/pull/40305 (release v8.79.0) unset($config['action_level']); } return new Logger( $this->parseChannel($config), [ $this->prepareHandler($handler, $config), ] ); } }