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

episodehunter/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

58 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

Releases

No releases published

Packages

No packages published