1.0.1 • Published 4 years ago

ivolve-cloud7-logger v1.0.1

Weekly downloads
82
License
ISC
Repository
-
Last release
4 years ago

Ivolve CLOUD7 Logging Library

Introduction

Logging Standards

1. Use Proper Log Commands

  • Console.log() should be used for logging any events, notifications, info or any success message.
  • Console.warn() should be used for logging warning messages in microservices.
  • Console.error() should be used for logging custom errors and exceptions.
  • Console.exception() should be used for exception logging.

2. Add Proper LOG_TARGET in .env

# logging target should be "console" | "kibana" | "both"
LOG_TARGET = both
  • Set console for only showing logs in console.
  • Set kibana for only send logs to kibana, don't show in console.
  • Set both for both showing in console and sending to kibana.
1.0.1

4 years ago

1.0.0

4 years ago