ILogger interface

에이전트 365 관찰성에 대한 사용자 지정 로거 인터페이스 백 엔드를 지원하도록 이 인터페이스 구현

메서드

error(string, unknown[])

오류 메시지 기록

event(ExporterEventNames, boolean, number, string, Record<string, string>)

표준화된 매개 변수를 사용하여 이벤트 기록

info(string, unknown[])

정보 메시지 기록

warn(string, unknown[])

경고 메시지 기록

메서드 세부 정보

error(string, unknown[])

오류 메시지 기록

function error(message: string, args: unknown[])

매개 변수

message

string

로그 메시지

args

unknown[]

로그에 포함할 선택적 인수

event(ExporterEventNames, boolean, number, string, Record<string, string>)

표준화된 매개 변수를 사용하여 이벤트 기록

function event(eventType: ExporterEventNames, isSuccess: boolean, durationMs: number, message?: string, details?: Record<string, string>)

매개 변수

eventType
ExporterEventNames

ExporterEventNames 열거형의 표준화된 이벤트 이름(예: ExporterEventNames.EXPORT)

isSuccess

boolean

작업/이벤트가 성공했는지 여부

durationMs

number

작업/이벤트의 기간(밀리초)

message

string

오류 또는 오류에 특히 유용한 선택적 메시지 또는 이벤트에 대한 추가 세부 정보

details

Record<string, string>

추가 컨텍스트가 있는 선택적 키-값 쌍(예: correlationId, tenantId, agentId 등)

info(string, unknown[])

정보 메시지 기록

function info(message: string, args: unknown[])

매개 변수

message

string

로그 메시지

args

unknown[]

로그에 포함할 선택적 인수

warn(string, unknown[])

경고 메시지 기록

function warn(message: string, args: unknown[])

매개 변수

message

string

로그 메시지

args

unknown[]

로그에 포함할 선택적 인수