From 12763bee7682d0e0b81a1c5c7b86c0b09b8cc955 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 16 Jan 2026 11:29:02 +0200 Subject: [PATCH] feat: add drafts-specific logger Add a Drafts context to the logger system for better log categorization and debugging of draft-related operations. Co-Authored-By: Claude Opus 4.5 --- src/logger/types.ts | 1 + src/state/drafts/logger.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 src/state/drafts/logger.ts diff --git a/src/logger/types.ts b/src/logger/types.ts index ab9707b41b..826a1bcc1e 100644 --- a/src/logger/types.ts +++ b/src/logger/types.ts @@ -15,6 +15,7 @@ export enum LogContext { AgeAssurance = 'age-assurance', PolicyUpdate = 'policy-update', Geolocation = 'geolocation', + Drafts = 'drafts', /** * METRIC IS FOR INTERNAL USE ONLY, don't create any other loggers using this diff --git a/src/state/drafts/logger.ts b/src/state/drafts/logger.ts new file mode 100644 index 0000000000..8cf9c10609 --- /dev/null +++ b/src/state/drafts/logger.ts @@ -0,0 +1,3 @@ +import {Logger} from '#/logger' + +export const logger = Logger.create(Logger.Context.Drafts)