Last active
February 2, 2021 20:52
-
-
Save nkhil/a821ea53fda5684665f0b14cda13b17f to your computer and use it in GitHub Desktop.
testing logging to stdout in node - test setup
This file contains 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 logger = require('./logger.js'); | |
logger.info({ foo: 'bar' }, 'param2'); | |
// Outputs: | |
// {"level":30,"time":1612298595613,"msg":"param2","pid":3039,"hostname":"whatever","foo":"bar","v":1} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment