diff --git a/packages/system/src/api.ts b/packages/system/src/api.ts index 981fb076a3..36b5f0e99b 100644 --- a/packages/system/src/api.ts +++ b/packages/system/src/api.ts @@ -1,6 +1,5 @@ import type { Fn, Keys } from "@thi.ng/api"; -import type { ILogger } from "@thi.ng/logger"; -import { NULL_LOGGER } from "@thi.ng/logger/null"; +import { ROOT } from "@thi.ng/logger/root"; import type { System } from "./system.js"; export interface ILifecycle = any> { @@ -69,12 +68,7 @@ export type SystemSpecs> = Record< SystemSpec >; -/** @internal */ -export let LOGGER = NULL_LOGGER; - /** - * Sets package logger to given instance. - * - * @param logger - + * See [thi.ng/logger](https://docs.thi.ng/umbrella/logger/) for usage. */ -export const setLogger = (logger: ILogger) => (LOGGER = logger); +export const LOGGER = ROOT.childLogger("system");