Logger
- Source:
Methods
(static) req(app)
Establishes logging of all requests for app
Parameters:
Name | Type | Description |
---|---|---|
app |
Object | Express app |
- Source:
(static) scopedLog(defaultMeta) → {function}
Return function for logging event using default meta data
Useful for instrumenting repeat logging within a given context without declaring repeat meta data redundantly
Meta data passed into returned function will take precedence over default meta data
Parameters:
Name | Type | Description |
---|---|---|
defaultMeta |
Object | Default meta data |
- Source:
Returns:
log function that takes standard Wiston log() params level, event and meta
- Type
- function