Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

fix(notice): change blue foreground to cyan #92

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ log.level = 'silly'
log.silly('silly prefix', 'x = %j', { foo: { bar: 'baz' } })
log.verbose('verbose prefix', 'x = %j', { foo: { bar: 'baz' } })
log.info('info prefix', 'x = %j', { foo: { bar: 'baz' } })
log.timing('timing prefix', 'x = %j', { foo: { bar: 'baz' } })
log.http('http prefix', 'x = %j', { foo: { bar: 'baz' } })
log.notice('notice prefix', 'x = %j', { foo: { bar: 'baz' } })
log.warn('warn prefix', 'x = %j', { foo: { bar: 'baz' } })
log.error('error prefix', 'x = %j', { foo: { bar: 'baz' } })
log.silent('silent prefix', 'x = %j', { foo: { bar: 'baz' } })
Expand All @@ -17,7 +19,9 @@ log.level = 'silent'
log.silly('silly prefix', 'x = %j', { foo: { bar: 'baz' } })
log.verbose('verbose prefix', 'x = %j', { foo: { bar: 'baz' } })
log.info('info prefix', 'x = %j', { foo: { bar: 'baz' } })
log.timing('timing prefix', 'x = %j', { foo: { bar: 'baz' } })
log.http('http prefix', 'x = %j', { foo: { bar: 'baz' } })
log.notice('notice prefix', 'x = %j', { foo: { bar: 'baz' } })
log.warn('warn prefix', 'x = %j', { foo: { bar: 'baz' } })
log.error('error prefix', 'x = %j', { foo: { bar: 'baz' } })
log.silent('silent prefix', 'x = %j', { foo: { bar: 'baz' } })
Expand All @@ -27,7 +31,9 @@ log.level = 'info'
log.silly('silly prefix', 'x = %j', { foo: { bar: 'baz' } })
log.verbose('verbose prefix', 'x = %j', { foo: { bar: 'baz' } })
log.info('info prefix', 'x = %j', { foo: { bar: 'baz' } })
log.timing('timing prefix', 'x = %j', { foo: { bar: 'baz' } })
log.http('http prefix', 'x = %j', { foo: { bar: 'baz' } })
log.notice('notice prefix', 'x = %j', { foo: { bar: 'baz' } })
log.warn('warn prefix', 'x = %j', { foo: { bar: 'baz' } })
log.error('error prefix', 'x = %j', { foo: { bar: 'baz' } })
log.silent('silent prefix', 'x = %j', { foo: { bar: 'baz' } })
Expand Down
4 changes: 2 additions & 2 deletions lib/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ log.style = {}
log.levels = {}
log.disp = {}
log.addLevel('silly', -Infinity, { inverse: true }, 'sill')
log.addLevel('verbose', 1000, { fg: 'blue', bg: 'black' }, 'verb')
log.addLevel('verbose', 1000, { fg: 'cyan', bg: 'black' }, 'verb')
log.addLevel('info', 2000, { fg: 'green' })
log.addLevel('timing', 2500, { fg: 'green', bg: 'black' })
log.addLevel('http', 3000, { fg: 'green', bg: 'black' })
log.addLevel('notice', 3500, { fg: 'blue', bg: 'black' })
log.addLevel('notice', 3500, { fg: 'cyan', bg: 'black' })
log.addLevel('warn', 4000, { fg: 'black', bg: 'yellow' }, 'WARN')
log.addLevel('error', 5000, { fg: 'red', bg: 'black' }, 'ERR!')
log.addLevel('silent', Infinity)
Expand Down
6 changes: 3 additions & 3 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const resultExpect = [
// eslint-disable-next-line max-len
'\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[7msill\u001b[0m \u001b[0m\u001b[35msilly prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[34;40mverb\u001b[0m \u001b[0m\u001b[35mverbose prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[36;40mverb\u001b[0m \u001b[0m\u001b[35mverbose prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[32minfo\u001b[0m \u001b[0m\u001b[35minfo prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[32;40mtiming\u001b[0m \u001b[0m\u001b[35mtiming prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[32;40mhttp\u001b[0m \u001b[0m\u001b[35mhttp prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[34;40mnotice\u001b[0m \u001b[0m\u001b[35mnotice prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[36;40mnotice\u001b[0m \u001b[0m\u001b[35mnotice prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mwarn prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
Expand All @@ -31,7 +31,7 @@ const resultExpect = [
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[32;40mhttp\u001b[0m \u001b[0m\u001b[35mhttp prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[34;40mnotice\u001b[0m \u001b[0m\u001b[35mnotice prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[36;40mnotice\u001b[0m \u001b[0m\u001b[35mnotice prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
'\u001b[0m\u001b[37;40mnpm\u001b[0m \u001b[0m\u001b[30;43mWARN\u001b[0m \u001b[0m\u001b[35mwarn prefix\u001b[0m x = {"foo":{"bar":"baz"}}\n',
// eslint-disable-next-line max-len
Expand Down