Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit acdf291

Browse files
committed
Add logger util
1 parent fbfcc93 commit acdf291

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/logger.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const PREFIX = '[Swetrix Captcha]'
2+
3+
export const logger = {
4+
log: (...args: unknown[]) => console.log(PREFIX, ...args),
5+
error: (...args: unknown[]) => console.error(PREFIX, ...args),
6+
warn: (...args: unknown[]) => console.warn(PREFIX, ...args),
7+
info: (...args: unknown[]) => console.info(PREFIX, ...args),
8+
} as const

0 commit comments

Comments
 (0)