5.1.6 • Published 6 years ago

egg-logaggregate v5.1.6

Weekly downloads
96
License
-
Repository
github
Last release
6 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

6 years ago

5.1.3

6 years ago

5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.1.14

6 years ago

4.1.12

6 years ago

4.1.11

6 years ago

4.1.10

6 years ago

4.1.9

6 years ago

4.1.8

6 years ago

4.1.4

6 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago