Simple NodeJS logger using Pino.
$ yarn add @aliencreations/node-logger
Please refer to the pino documentation for the optionalPinoConfig
referenced below.
const applicationMetaData = {
appName : config.appName,
someOtherMeta : 'goes here'
};
const optionalPinoConfig = {
redact : ['key', 'path.to.key', 'stuff.thats[*].secret']
};
const logger = require('@aliencreations/node-logger')(applicationMetaData, optionalPinoConfig);
logger.info('some log here');
- Initial commit.