File tree Expand file tree Collapse file tree 2 files changed +16
-25
lines changed Expand file tree Collapse file tree 2 files changed +16
-25
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- /* eslint-disable-next-line import/no-unresolved */
2- import Logger from '../src'
1+ import { Logger } from '../src/index'
32
4- Logger . success ( 'logger running!' )
5- Logger . error ( 'unexpected bahavior' )
3+ const log = new Logger ( {
4+ prefix : '{cyan.bold [CUSTOM PREFIX] }' ,
5+ debug : { prefix : '{bold.blue CUSTOMDEBUG }' }
6+ } )
7+
8+ log . debug ( 'standard debug message' )
9+ log . debug ( '{bgBlue.magenta CUSTOM{reset.yellow debug}{bgBlack.cyan info}}' )
10+
11+ log . error ( 'unexpected bahavior' )
12+ log . success ( 'logger running!' )
13+ << < << << HEAD
614// Logger.log('{reset.magenta custom {bgBlackBright.yellow output style}}')
715Logger . debug ( 'standard debug info' )
16+ === = ===
17+
18+ log . log ( '{bgBlue.bold.magenta custom output style}' )
19+ >>> > >>> 1871 a68 ( * feat : pass options to Logger instance )
820
You can’t perform that action at this time.
0 commit comments