File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -125,13 +125,12 @@ The message will be colorized unless either:
125125- the option ` colors ` is set to ` false `
126126
127127The message generation can be overriden by using the ` getMessage ` option. It
128- should be a function function using [ ` info ` as argument] ( #custom-logging ) and
129- returning a string. The ` info ` argument also has the following properties:
128+ should be a function using [ ` info ` as argument] ( #custom-logging ) and returning
129+ a string. The ` info ` argument also has the following properties:
130130
131131- ` level ` ` {string} `
132132- ` colors ` ` {object} ` : [ Chalk instance] ( https://github.com/chalk/chalk#api )
133- to colorize strings. Colors will be disabled if the ` colors ` option is
134- false.
133+ to colorize strings (disabled if the option ` colors ` is ` false ` )
135134
136135# Skipping events
137136
@@ -144,7 +143,11 @@ For example to skip `warning` events:
144143import/no-unresolved, unicorn/filename-case, strict, no-undef -->
145144
146145``` js
147- logProcessErrors ({ skipEvent : ({ eventName }) => eventName === ' warning' })
146+ logProcessErrors ({
147+ skipEvent ({ eventName }) {
148+ return eventName === ' warning'
149+ },
150+ })
148151```
149152
150153# Stop logging
You can’t perform that action at this time.
0 commit comments