Function
| Static Public Summary | ||
| public |
createPrettySerializer(): bunyanSerializer createPrettySerializer is a thunk that takes configuration parameters and returns a bunyan serializer function. |
|
Static Public
public createPrettySerializer(): bunyanSerializer source
import createPrettySerializer from 'bunyan-serializer/lib/serializers/createPrettySerializer.js'createPrettySerializer is a thunk that takes configuration parameters and returns a bunyan serializer function.
Params:
| Name | Type | Attribute | Description |
| options.showName | boolean | Enables printing the logger name in logs. (false) |
|
| options.showHostname | boolean | Enables printing the hostname in logs. (false) |
|
| options.showPid | boolean | Enables printing the process id in the logs. (true) |
|
| options.showTime | boolean | Enables printing the timestamp in the logs. (true) |
|
| options.showError | boolean | Enables printing errors in the logs. (true) |
|
| options.showSilly | boolean | Prints additional debug information into the logs. (false) |
Return:
| bunyanSerializer | Returns a pretty formatting bunyanSerializer function that converts bunyan write input to human readable text. |