public function clear($log)
    {
        if ($log === 'change') {
            $this->changeRepository->clearLog();
        } elseif ($log === 'system') {
            $this->systemRepository->clearLog();
        } else {
            throw new \UnexpectedValueException("Invalid log type requested: $log");
        }

        $this->app['logger.system']->info(ucfirst($log) . ' log cleared.', ['event' => 'security']);
    }
public function clear($log)
    {
        if ($log === 'change') {
            $this->changeRepository->clearLog();
        } elseif ($log === 'system') {
            $this->systemRepository->clearLog();
        } else {
            throw new \UnexpectedValueException("Invalid log type requested: $log");
        }

        $this->app['logger.system']->info(ucfirst($log) . ' log cleared.', ['event' => 'security']);
    }
public function clear ( $ log ) { if ( $ log === 'change' ) { $ this -> changeRepository -> clearLog ( ) ; } elseif ( $ log === 'system' ) { $ this -> systemRepository -> clearLog ( ) ; } else { throw new \ UnexpectedValueException ( "Invalid log type requested: $log" ) ; } $ this -> app [ 'logger.system' ] -> info ( ucfirst ( $ log ) . ' log cleared.' , [ 'event' => 'security' ] ) ; }
Clear a log.

@param string $log

@throws \UnexpectedValueException
Clear a log .