New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

egg-logaggregate

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-logaggregate

> Aggregate egg logs into 2 categories: common logs and request logs.

latest
Source
npmnpm
Version
5.1.6
Version published
Weekly downloads
3
-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

egg-logaggregate

Aggregate egg logs into 2 categories: common logs and request logs.

Build Status NPM version code style: prettier Maintainability Test Coverage Known Vulnerabilities David deps npm download Git commit with emojis!

Why?

Aggregate egg logs into 2 categories:

  • common logs: common.json.log
  • request logs: request.json.log

How?

It adds extra log transports which also append extra fields to the log file in json format:

  • @env
  • @timestamp
  • @servername
  • @region
  • ...

Installation

npm install egg-logaggregate --save

Enable in your project:

In egg project's config/plugin.ts

export default const plugin: EggPlugin = {
    //...
    logaggregate: {
        enable: true,
        package: 'egg-logaggregate'
    }
    //...
}

Configuration/Customization:

This plugin is zero configuration, in other words, as soon as you installed and enabled it, then it works.

Keywords

egg

FAQs

Package last updated on 04 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts