5.1.6 • Published 4 years ago

egg-logaggregate v5.1.6

Weekly downloads
96
License
-
Repository
github
Last release
4 years ago

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.

5.1.6

4 years ago

5.1.3

5 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.1.14

5 years ago

4.1.12

5 years ago

4.1.11

5 years ago

4.1.10

5 years ago

4.1.9

5 years ago

4.1.8

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago