Skip to content
This repository has been archived by the owner on Oct 9, 2019. It is now read-only.

Latest commit

 

History

History
17 lines (12 loc) · 459 Bytes

readme.md

File metadata and controls

17 lines (12 loc) · 459 Bytes

See: https://github.com/episodehunter/episodehunter/tree/master/packages/logger

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!');
};