summaryrefslogtreecommitdiff
path: root/log/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'log/mod.ts')
-rw-r--r--log/mod.ts15
1 files changed, 5 insertions, 10 deletions
diff --git a/log/mod.ts b/log/mod.ts
index d294cdc07..cb166376e 100644
--- a/log/mod.ts
+++ b/log/mod.ts
@@ -62,20 +62,15 @@ export function getLogger(name?: string): Logger {
return state.loggers.get(name)!;
}
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const debug = (msg: string, ...args: any[]): void =>
+export const debug = (msg: string, ...args: unknown[]): void =>
getLogger("default").debug(msg, ...args);
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const info = (msg: string, ...args: any[]): void =>
+export const info = (msg: string, ...args: unknown[]): void =>
getLogger("default").info(msg, ...args);
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const warning = (msg: string, ...args: any[]): void =>
+export const warning = (msg: string, ...args: unknown[]): void =>
getLogger("default").warning(msg, ...args);
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const error = (msg: string, ...args: any[]): void =>
+export const error = (msg: string, ...args: unknown[]): void =>
getLogger("default").error(msg, ...args);
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const critical = (msg: string, ...args: any[]): void =>
+export const critical = (msg: string, ...args: unknown[]): void =>
getLogger("default").critical(msg, ...args);
export async function setup(config: LogConfig): Promise<void> {