protected static function bindLoggerInterface(Application $app): void
    {
        $handler = new StreamHandler(
            $app->config()['logger']['filePath'],
            LogLevel::DEBUG
        );

        $app->container()->singleton(
            LoggerInterface::class,
            new Monolog(
                $app->config()['logger']['name'],
                [
                    $handler,
                ]
            )
        );
    }
protected static function bindLoggerInterface(Application $app): void
    {
        $handler = new StreamHandler(
            $app->config()['logger']['filePath'],
            LogLevel::DEBUG
        );

        $app->container()->singleton(
            LoggerInterface::class,
            new Monolog(
                $app->config()['logger']['name'],
                [
                    $handler,
                ]
            )
        );
    }
protected static function bindLoggerInterface ( Application $ app ) : void { $ handler = new StreamHandler ( $ app -> config ( ) [ 'logger' ] [ 'filePath' ] , LogLevel :: DEBUG ) ; $ app -> container ( ) -> singleton ( LoggerInterface :: class , new Monolog ( $ app -> config ( ) [ 'logger' ] [ 'name' ] , [ $ handler , ] ) ) ; }
Bind the logger interface.

@param Application $app The application

@throws \Exception

@return void
Bind the logger interface .