From ee7ae4eb9ebceaf29d7dc807672d5614eabc5939 Mon Sep 17 00:00:00 2001 From: GloryWong Date: Fri, 28 Jun 2024 19:49:18 +0800 Subject: [PATCH] fix: remove demo code in index --- index.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/index.ts b/index.ts index e24dc0e..75c2437 100644 --- a/index.ts +++ b/index.ts @@ -164,17 +164,3 @@ export { disable as disableLogger, isEnabled as isLoggerEnabled, } - -// Namespace: foo -const logger = createLogger('foo') -logger.debug('Hello world: %s.', '백선생, 백종원 중국집 짜장면 만들기~!') -logger.info('Hello world: %d.', 1234) -logger.warn('Hello world: %o.', true) -logger.error('Hello world: %o.', { name: 'Jajangmyeon', native: '짜장면' }) - -// Title-scope: bar -const log = logger('bar') -log.debug('Hello world: %s.', 'A thick sauce made of chunjang, diced pork, and vegetables') -log.info('Hello world: %d.', 5678) -log.warn('Hello world: %o.', false) -log.error('Hello world: %o.', { name: 'Jajangmyeon', native: '짜장면' })