const logger = require(`@vizydrop/logger`);
const log = logger({
level: `info`,
mode: process.env.NODE_ENV,
correlationId: {
enabled: true,
fieldName: `correlationId`, // default name is correlationId
getCorrelationId: () => `correlation-id-value`, // required
emptyValue: null, // used when correlation id is missing
},
additionalFields: {field1: `value`},
});
log.info(`message`);
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
vizydrop/logger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published