Skip to content

Commit aa13dce

Browse files
committed
Update README
1 parent cf82e20 commit aa13dce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ The message will be colorized unless either:
125125
- the option `colors` is set to `false`
126126

127127
The 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:
144143
import/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

0 commit comments

Comments
 (0)