@unicity/cloudwatch-logger

1.1.0 • Public • Published

Unicity-Cloudwatch-Logger

About

const Logger = require('@unicity/cloudwatch-logger');

const env    = 'qa';
const logger = new Logger({
	service                   : 'events', // this is optional and adds a key saying service in each message.
	groupName                 : `hydra${env}.unicity.net/v5a`,
	streamName                : 'test',
	region                    : 'us-east-1',
	handleUnhandledExceptions : true,
	logLocallyOnly            : true // true will make this not actually log to AWS and only log locally
});

logger.info('hello world', event);

Readme

Keywords

none

Package Sidebar

Install

npm i @unicity/cloudwatch-logger

Weekly Downloads

68

Version

1.1.0

License

UNLICENSED

Unpacked Size

11.5 kB

Total Files

5

Last publish

Collaborators

  • loothee
  • dmarc-unicity
  • alexjones
  • guneets_unicity
  • dmiller1006
  • jerazo
  • derekhansenunicity
  • powerc9000
  • ehrendavis12
  • lukecfairchild
  • unicityit
  • mrmmattson