3.5.6 • Published 9 months ago

@gus-eip/loggers v3.5.6

Weekly downloads
-
License
-
Repository
-
Last release
9 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 {}

License

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


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

3.5.6

9 months ago

3.5.5

9 months ago

3.3.9

11 months ago

3.3.8

12 months ago

3.3.7

12 months ago

3.5.4

10 months ago

3.3.6

1 year ago

3.4.0

11 months ago

3.4.4

11 months ago

3.2.6

1 year ago

3.4.3

11 months ago

3.2.5

1 year ago

3.4.2

11 months ago

3.2.4

1 year ago

3.4.1

11 months ago

3.4.8

11 months ago

3.4.7

11 months ago

3.2.9

1 year ago

3.4.6

11 months ago

3.2.8

1 year ago

3.4.5

11 months ago

3.2.7

1 year ago

3.4.9

11 months ago

3.3.1

1 year ago

3.3.0

1 year ago

3.5.3

11 months ago

3.3.5

1 year ago

3.5.2

11 months ago

3.3.4

1 year ago

3.5.1

11 months ago

3.3.3

1 year ago

3.5.0

11 months 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

1 year ago

2.0.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago