From df5c8746496fb65c768add662ddddf3c2f16e1b4 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Fri, 16 Feb 2024 18:37:55 +0100 Subject: [PATCH] refactor(interceptors): update LOGGER handling --- packages/interceptors/src/api.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/interceptors/src/api.ts b/packages/interceptors/src/api.ts index 94890530a1..c91bddd9b9 100644 --- a/packages/interceptors/src/api.ts +++ b/packages/interceptors/src/api.ts @@ -1,6 +1,5 @@ import type { ReadonlyAtom } from "@thi.ng/atom"; -import type { ILogger } from "@thi.ng/logger"; -import { NULL_LOGGER } from "@thi.ng/logger/null"; +import { ROOT } from "@thi.ng/logger/root"; export type InterceptorFn = ( state: any, @@ -84,6 +83,7 @@ export interface InterceptorContext { [id: string]: any; } -export let LOGGER = NULL_LOGGER; - -export const setLogger = (logger: ILogger) => (LOGGER = logger); +/** + * See [thi.ng/logger](https://docs.thi.ng/umbrella/logger/) for usage. + */ +export const LOGGER = ROOT.childLogger("icep");