Created
July 29, 2019 21:21
-
-
Save deleteman/94c4024720eaec94d1098d46b135a7f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const esTransportOpts = { | |
level: 'info', | |
transformer: logData => { | |
return { | |
"@timestamp": (new Date()).getTime(), | |
severity: logData.level, | |
message: `[${logData.level}] LOG Message: ${logData.message}`, | |
fields: {} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment