File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable no-param-reassign */
22/* eslint no-console: off */
33import _ from 'lodash'
4- < << << << HEAD
5- import chalk from 'chalk'
6- // import chalkExt from './chalkExt'
7- = === ===
84
95import chalkExt from './chalkExt'
10- > >>> >>> 1871 a68 ( * feat : pass options to Logger instance )
116
127// TODO: use static props -> update babel!
138class Logger {
@@ -29,20 +24,11 @@ class Logger {
2924 log ( str , type = 'log' , styleCustom ) {
3025 const { prefix, [ type ] : typeOptions } = this . options
3126
32- << < << << HEAD
33- return true
34- }
35-
36- const { style , prefix } = this . options
37- const typeOptions = this . options [ type ]
38-
39- === = ===
4027 if ( arguments . length === 1 ) {
4128 console . log ( chalkExt `${ prefix } ${ str } ` )
4229 return
4330 }
4431
45- > >>> >>> 1871 a68 ( * feat : pass options to Logger instance )
4632 console . log (
4733 ( prefix ? chalkExt `${ prefix } ` : '' ) +
4834 ( typeOptions . prefix ? chalkExt `${ typeOptions . prefix } ` : '' ) +
Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ log.debug('{bgBlue.magenta CUSTOM{reset.yellow debug}{bgBlack.cyan info}}')
1010
1111log . error ( 'unexpected bahavior' )
1212log . success ( 'logger running!' )
13- << < << << HEAD
14- // Logger.log('{reset.magenta custom {bgBlackBright.yellow output style}}')
15- Logger . debug ( 'standard debug info' )
16- === = ===
1713
1814log . log ( '{bgBlue.bold.magenta custom output style}' )
19- >>> > >>> 1871 a68 ( * feat : pass options to Logger instance )
2015
You can’t perform that action at this time.
0 commit comments