src/classes/Utilities/Log.php
private static function logger()
    {
        $settings = [
            'name' => config('app.name'),
            'level' => Logger::DEBUG,
            'path' => storage_path("logs/" . (PHP_SAPI === "cli" ? "cli.log" : "app.log"))
        ];

        $logger = new Logger($settings['name']);
        $handler = new StreamHandler($settings['path']);

        $lineFormatter = new LineFormatter;
        $lineFormatter->includeStacktraces();

        $handler->setFormatter($lineFormatter);

        return $logger->pushHandler($handler, $settings['level']);
    }
private static function logger()
    {
        $settings = [
            'name' => config('app.name'),
            'level' => Logger::DEBUG,
            'path' => storage_path("logs/" . (PHP_SAPI === "cli" ? "cli.log" : "app.log"))
        ];

        $logger = new Logger($settings['name']);
        $handler = new StreamHandler($settings['path']);

        $lineFormatter = new LineFormatter;
        $lineFormatter->includeStacktraces();

        $handler->setFormatter($lineFormatter);

        return $logger->pushHandler($handler, $settings['level']);
    }
private static function logger ( ) { $ settings = [ 'name' => config ( 'app.name' ) , 'level' => Logger :: DEBUG , 'path' => storage_path ( "logs/" . ( PHP_SAPI === "cli" ? "cli.log" : "app.log" ) ) ] ; $ logger = new Logger ( $ settings [ 'name' ] ) ; $ handler = new StreamHandler ( $ settings [ 'path' ] ) ; $ lineFormatter = new LineFormatter ; $ lineFormatter -> includeStacktraces ( ) ; $ handler -> setFormatter ( $ lineFormatter ) ; return $ logger -> pushHandler ( $ handler , $ settings [ 'level' ] ) ; }
Ready the logger object.

@return mixed
Ready the logger object .