0.0.1 • Published 2 months ago

log4g v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

@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