4.0.9 • Published 5 months ago

@gus-eip/loggers v4.0.9

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@gus-eip/loggers

Overview

@gus-eip/loggers is a package designed to provide logging functionality for your Node.js applications. It offers integration with various logging services, including CloudWatchLogger.

Installation

You can install the package via npm:

npm install @gus-eip/loggers

Usage

To use the logger module in your application, follow these steps:

  1. Import LoggerModule from @gus-eip/loggers inside your module.
import { LoggerModule } from '@gus-eip/loggers';
  1. Configure LoggerModule in your module by calling the forRoot method.
LoggerModule.forRoot({
  region: process.env.REGION,
  logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
  options: 'CloudWatchLogger',
}),

Ensure you provide the necessary environment variables (REGION and LOGGER_LOG_GROUP_NAME) for configuration.

Configuration Options

  • region: The AWS region where your CloudWatch logs are located.
  • logGroupName: The name of the log group where logs will be sent.
  • options: The options for the logger. Currently, only 'CloudWatchLogger' is supported.

Example

import { Module } from '@nestjs/common';
import { LoggerModule } from '@gus-eip/loggers';

@Module({
  imports: [
    LoggerModule.forRoot({
      region: process.env.REGION,
      logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
      options: 'CloudWatchLogger',
    }),
  ],
})
export class AppModule {}
This repository requires AWS SSM Parameter Store access to retrieve the SQS URL dynamically. Ensure that the application has permission to read LOGGER_SQS_URL.

License

This project is licensed under the MIT License - see the LICENSE file for details.


OAP-EIP LOGGER

Whenever a new use case is added in the enum.ts file, make sure to also:

  1. Add a user-friendly label for it in usecase-mapping.ts.

  2. Add a new entry in source-destination-mapping.ts with the correct usecase, brand, source, and destination.

  3. After publishing the updated package, update the dependency in the gus-eip-analytics repository to reflect the latest version.

Feel free to customize this README according to your specific package features, usage guidelines, and licensing terms.

3.7.5

9 months ago

3.7.4

10 months ago

3.7.3

10 months ago

3.7.2

10 months ago

3.7.9

8 months ago

3.7.8

8 months ago

3.7.7

8 months ago

3.7.6

8 months ago

3.6.2

11 months ago

3.6.1

11 months ago

3.6.0

11 months ago

4.0.5

6 months ago

4.0.4

6 months ago

4.0.7

5 months ago

4.0.6

6 months ago

4.0.1

6 months ago

4.0.0

6 months ago

4.0.3

6 months ago

4.0.2

6 months ago

4.0.9

5 months ago

4.0.8

5 months ago

3.6.6

10 months ago

3.6.5

11 months ago

3.6.4

11 months ago

3.6.3

11 months ago

3.6.9

10 months ago

3.6.8

10 months ago

3.6.7

10 months ago

3.9.9

6 months ago

3.9.8

6 months ago

3.9.3

7 months ago

3.5.7

11 months ago

3.9.2

7 months ago

3.9.1

7 months ago

3.9.0

7 months ago

3.9.7

6 months ago

3.9.6

6 months ago

3.9.5

7 months ago

3.5.9

11 months ago

3.9.4

7 months ago

3.5.8

11 months ago

3.8.0

8 months ago

3.8.9

8 months ago

3.8.4

8 months ago

3.8.3

8 months ago

3.8.2

8 months ago

3.8.1

8 months ago

3.8.8

8 months ago

3.8.7

8 months ago

3.8.6

8 months ago

3.8.5

8 months ago

3.7.1

10 months ago

3.7.0

10 months ago

3.5.6

1 year ago

3.5.5

1 year ago

3.3.9

1 year ago

3.3.8

1 year ago

3.3.7

1 year ago

3.5.4

1 year ago

3.3.6

1 year ago

3.4.0

1 year ago

3.4.4

1 year ago

3.2.6

1 year ago

3.4.3

1 year ago

3.2.5

1 year ago

3.4.2

1 year ago

3.2.4

1 year ago

3.4.1

1 year ago

3.4.8

1 year ago

3.4.7

1 year ago

3.2.9

1 year ago

3.4.6

1 year ago

3.2.8

1 year ago

3.4.5

1 year ago

3.2.7

1 year ago

3.4.9

1 year ago

3.3.1

1 year ago

3.3.0

1 year ago

3.5.3

1 year ago

3.3.5

1 year ago

3.5.2

1 year ago

3.3.4

1 year ago

3.5.1

1 year ago

3.3.3

1 year ago

3.5.0

1 year ago

3.3.2

1 year ago

3.2.2

1 year ago

3.1.3

1 year ago

3.2.1

1 year ago

3.1.2

1 year ago

3.2.0

1 year ago

3.1.7

1 year ago

3.1.6

1 year ago

3.1.5

1 year ago

3.2.3

1 year ago

3.1.4

1 year ago

3.1.9

1 year ago

3.1.8

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago