Skip to content

Commit

Permalink
fix: remove demo code in index
Browse files Browse the repository at this point in the history
  • Loading branch information
GloryWong committed Jun 28, 2024
1 parent 43a3c41 commit ee7ae4e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '짜장면' })

0 comments on commit ee7ae4e

Please sign in to comment.