공통 기본 이벤트 API 및 Java 로깅 API를 사용한 로깅

Java™ 로깅 API에 의해 생성되는 이벤트가 캡처링을 필요로 하는 이벤트를 설명하기에 충분하지 않은 경우, 공통 기본 이벤트 팩토리 API를 사용하여 공통 기본 이벤트를 작성할 수 있습니다.

시작하기 전에

공통 기본 이벤트를 작성하면 로그되기 전 공통 기본 이벤트에 데이터를 추가할 수 있습니다. 다음 다이어그램은 애플리케이션 코드가 공통 기본 이벤트를 작성하고 로그하는 방법을 보여줍니다.

애플리케이션 코드가 공통 기본 이벤트를 작성하고 로그하는 방법

이 태스크 정보

WebSphere® Application Server는 생성하는 공통 기본 이벤트에 WebSphere Application Server 특정 정보를 자동으로 채우는 이벤트 팩토리를 사용하도록 구성됩니다. 일반적으로 WebSphere Application Server 기본 공통 기본 이벤트 팩토리를 사용하여 이벤트를 작성하는 접근법은 이벤트 사이에서 공통 기본 이벤트 컨텐츠의 일관성을 보증하므로 우수한 사례입니다. 그러나 다른 공통 이벤트 팩토리를 작성하고 사용할 수 있습니다.

공통 기본 이벤트가 시작되고 다음 순서로 로그인됩니다.
  1. 애플리케이션 코드가 EventFactory 클래스에서 createCommonBaseEvent 메소드를 호출하여 CommonBaseEvent를 작성합니다.
  2. 애플리케이션 코드가 CommonBaseEventLogRecord 레코드에서 CommonBaseEvent 이벤트를 랩핑하고 이벤트 특정 데이터를 추가합니다.
  3. Application code calls the CommonBaseEvent event complete method.
  4. The CommonBaseEvent event invokes the ContentHandler completeEvent method.
  5. The ContentHandler handler adds XML template data to the CommonBaseEvent event. Not all ContentHandler handlers support templates.
  6. The ContentHandler handler adds runtime data to the CommonBaseEvent event.
  7. Application code passes the CommonBaseEventLogRecord record to the logger using the Logger.log method.
  8. 로거가 CommonBaseEventLogRecord 레코드를 핸들러에 전달합니다.
  9. 핸들러가 데이터를 형식화화고 출력 디바이스에 기록합니다.

프로시저

결과

모든 이전 단계를 완료하면 구성 설정에 따라 공통 기본 이벤트가 생성됩니다.


주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=ttrb_cbeapi
파일 이름:ttrb_cbeapi.html