public function initEventLogger()
    {
        $dispatcher = static::getEventDispatcher();

        $logger = $this->newEventLogger();

        $dispatcher->listen('Adldap\Auth\Events\*', function ($eventName, $events) use ($logger) {
            foreach ($events as $event) {
                $logger->auth($event);
            }
        });

        $dispatcher->listen('Adldap\Models\Events\*', function ($eventName, $events) use ($logger) {
            foreach ($events as $event) {
                $logger->model($event);
            }
        });
    }
public function initEventLogger()
    {
        $dispatcher = static::getEventDispatcher();

        $logger = $this->newEventLogger();

        $dispatcher->listen('Adldap\Auth\Events\*', function ($eventName, $events) use ($logger) {
            foreach ($events as $event) {
                $logger->auth($event);
            }
        });

        $dispatcher->listen('Adldap\Models\Events\*', function ($eventName, $events) use ($logger) {
            foreach ($events as $event) {
                $logger->model($event);
            }
        });
    }
public function initEventLogger ( ) { $ dispatcher = static :: getEventDispatcher ( ) ; $ logger = $ this -> newEventLogger ( ) ; $ dispatcher -> listen ( 'Adldap\Auth\Events\*' , function ( $ eventName , $ events ) use ( $ logger ) { foreach ( $ events as $ event ) { $ logger -> auth ( $ event ) ; } } ) ; $ dispatcher -> listen ( 'Adldap\Models\Events\*' , function ( $ eventName , $ events ) use ( $ logger ) { foreach ( $ events as $ event ) { $ logger -> model ( $ event ) ; } } ) ; }
Initializes the event logger.

@return void
Initializes the event logger .