Skip to content

robertozmc/log4js-s3-appender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log4JS - S3 appender

This is an optional appender for log4js-node.

Installation

npm i log4js-s3-appender

Configuration

  • type - log4js-s3-appender
  • region - string - S3 region
  • bucket - string - S3 bucket
  • key - string - S3 key

Example

log4js.configure({
  appenders: {
    s3: {
      type: "log4js-s3-appender",
      region: "eu-west-1",
      bucket: "eu-west-1-logs",
      key: "log"
    }
  },
  categories: {
    default: {
      appenders: ["s3"],
      level: "info"
    }
  }
});

As a result a new text file will be uploaded to the S3 bucket with given key. File is encrypted using AES256.

About

S3 appender for log4js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published