Skip to main content

ElasticSearchLogger

defaultTransformer(logData) ⇒ Object

Transformer function to transform log data as provided by winston into a message structure which is more appropriate for indexing in ES.

Kind: global function
Returns: Object - transformed message

ParamTypeDescription
logDataObject
logData.messageObjectthe log message
logData.levelObjectthe log level
logData.metaObjectthe log meta data (JSON object)