Skip to content

NotificationLogger — @gj-kit/nest-notifications

A public interface from @gj-kit/nest-notifications. The signature below is taken directly from the 0.1.1 release declaration.

import { NotificationLogger } from '@gj-kit/nest-notifications';
/**
* 구조적 로거 포트 — 소스의 `PinoLogger`(nestjs-pino) 직접 의존을 대체한다(설계 §0.2-⑮).
* 형제 `nest-operations-jobs`의 `JobLogger`와 같은 형태라 pino 인스턴스가 그대로 대입되고,
* Nest 내장 `Logger`는 `.` 서브패스의 `fromNestLogger` 어댑터가 흡수한다.
*/
/** Fields-first structured logger. A pino instance satisfies this shape as is. */
interface NotificationLogger {
info(fields: Record<string, unknown>, message: string): void;
warn(fields: Record<string, unknown>, message: string): void;
error(fields: Record<string, unknown>, message: string): void;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-notifications
  • Version: 0.1.1
  • Public entry: .
  • Source: GitHub