cw-timelogger
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

CW-Logger

Logger and Time Logger based on AWS CloudWatch

Usage

import {Logger} from 'cw-logger'

Logger.configure({
    awsAccessKeyId: 'MY_KEY', // required
    awsSecretKey: 'MY_SECRET', // required
    awsRegion: 'eu-west-3', // optional, default to eu-west-3
    logLevel: 'info', // optional, default to 'debug'
    facility: 'MY_APP_NAME' // optional, default to 'app'
})

Logger.getInstance().info('Test log', {myPayload: 'ok'})

Readme

Keywords

Package Sidebar

Install

npm i cw-timelogger

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

18.6 kB

Total Files

9

Last publish

Collaborators

  • boudah