PHP 클래스 Eccube\EventListener\RequestDumpListener

ログ出力を除外したいキーは log.yml の exclude_keys で設定します. addExcludeKey(), removeExcludeKey() でも設定できます.
저자: Kentaro Ohkouchi
상속: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: ec-cube/ec-cube

공개 메소드들

메소드 설명
__construct ( Application $app ) Constructor function.
getSubscribedEvents ( ) : array Return the events to subscribe to.
onKernelRequest ( GetResponseEvent $event ) Kernel request listener callback.
onResponse ( FilterResponseEvent $event ) Kernel response listener callback.

보호된 메소드들

메소드 설명
addExcludeKey ( string $key ) ログ出力を除外するキーを追加します.
logArray ( array $values, $prefix = '' ) 配列をログ出力する.
logKeyValuePair ( $key, $value, $prefix = '' ) キーと値のペアをログ出力する.
logRequest ( Request $request ) : string Request のログを出力する.
logResponse ( Response $response ) : string Response のログを出力する.
logSession ( Symfony\Component\HttpFoundation\Session\SessionInterface $Session ) Session のログを出力する.
removeExcludeKey ( string $key ) ログ出力を除外するキーを削除します.

메소드 상세

__construct() 공개 메소드

Constructor function.
public __construct ( Application $app )
$app Eccube\Application

addExcludeKey() 보호된 메소드

ログ出力を除外するキーを追加します.
protected addExcludeKey ( string $key )
$key string 除外対象のキー

getSubscribedEvents() 공개 정적인 메소드

Return the events to subscribe to.
public static getSubscribedEvents ( ) : array
리턴 array

logArray() 보호된 메소드

配列をログ出力する.
protected logArray ( array $values, $prefix = '' )
$values array

logKeyValuePair() 보호된 메소드

除外キーに該当する値は, マスクをかける
protected logKeyValuePair ( $key, $value, $prefix = '' )

logRequest() 보호된 메소드

Request のログを出力する.
protected logRequest ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
리턴 string Request のログ

logResponse() 보호된 메소드

Response のログを出力する.
protected logResponse ( Response $response ) : string
$response Symfony\Component\HttpFoundation\Response
리턴 string Response のログ

logSession() 보호된 메소드

Session のログを出力する.
protected logSession ( Symfony\Component\HttpFoundation\Session\SessionInterface $Session )
$Session Symfony\Component\HttpFoundation\Session\SessionInterface

onKernelRequest() 공개 메소드

Kernel request listener callback.
public onKernelRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent

onResponse() 공개 메소드

Kernel response listener callback.
public onResponse ( FilterResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\FilterResponseEvent

removeExcludeKey() 보호된 메소드

ログ出力を除外するキーを削除します.
protected removeExcludeKey ( string $key )
$key string 削除対象のキー