Skip to content

Commit

Permalink
refactor(interceptors): update LOGGER handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 16, 2024
1 parent 83ea177 commit df5c874
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/interceptors/src/api.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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");

0 comments on commit df5c874

Please sign in to comment.