log4g
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@gromo-fintech/gromo-log4g-js

gromo-log4g-js is a versatile and easy-to-use logging framework for JavaScript and Nest.js applications. It provides powerful logging capabilities to help developers track and debug their applications efficiently.

Features

  • Customizable Logging Levels: Configure different log levels (e.g., DEBUG, INFO, WARN, ERROR) according to your application's needs.

  • Log Formats: Choose between formatting logs a text or json

  • Log Meta Data: Logs have meta data useful for debugging like: methodName, lineNumer, className, filePath, timestamp etc.

  • Saves Logs as stdout or files: Saves logs as stdout / stderr or save as file depending upon config. When storing logs in a file you can choose between storing in a single file, or bifurcated based on log levels.

Installation

You can install log4g.js via npm:

npm install @gromo-fintech/log4g.js

Usage

Basic Usage

Nest.js Integration

Configuration

gromo-log4g.js can configured to your needs. It is configured when initializing

Readme

Keywords

none

Package Sidebar

Install

npm i log4g

Weekly Downloads

2

Version

0.0.1

License

ISC

Unpacked Size

46.3 kB

Total Files

36

Last publish

Collaborators

  • saket-anand-gromo
  • rajan.walia
  • tech-team-gromo