@episodehunter/logger
v4.2.3
Published
Logger for episodehunter
Downloads
5
Readme
Logger for episodehunter
A simple wrapper for the sentry and logdna clients.
import { setupLogger } from '@episodehunter/logger';
const createLogger = setupLogger('ravenDns', 'logDnaApiKey');
const handler = (event, context, cb) => {
const requestStack = ['id2', 'id1', 'id0'];
const logger = createLogger(context, requestStack);
logger.log('Hello!');
};
Do not log under test (process.env.NODE_ENV === 'test'
)