Overview:
The Ogma Logger is a logging tool designed to simplify logging in development and produce powerful JSON logs for production environments. It offers a base logger package, a NestJS module, and various plugins to enhance logging capabilities for different platforms and services.
Features:
- Simplified logging: Makes logging simple and easy to read in development.
- Powerful JSON logs: Produces JSON logs for production, making it easier to parse and consume by external services.
- Modular packages: Includes different packages for logging with various platforms and services such as Express, Fastify, GraphQL, gRPC, Kafka, and more.
Installation:
To install the Ogma Logger, you can use npm to install the desired packages. Here is an example code snippet to install the base logger package:
npm install @ogma/logger
You can install other packages in a similar manner based on your requirements.
Summary:
The Ogma Logger is a comprehensive logging tool that offers simplicity in development logging and power in production level JSON logs. With its modular structure and various plugins, it provides flexibility in logging for different platforms and services, making it a versatile choice for logging needs in web development projects.