mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
14 lines
477 B
TypeScript
14 lines
477 B
TypeScript
import { createModule } from "@evyweb/ioctopus";
|
|
|
|
import type { ILogger } from "@calcom/features/webhooks/lib/interface/infrastructure";
|
|
|
|
import { SHARED_TOKENS } from "../shared.tokens";
|
|
|
|
export const loggerServiceModule = createModule();
|
|
|
|
// Bind logger with proper factory that respects IoC
|
|
loggerServiceModule.bind(SHARED_TOKENS.LOGGER).toFactory(async (): Promise<ILogger> => {
|
|
const loggerModule = await import("@calcom/lib/logger");
|
|
return loggerModule.default;
|
|
});
|