1.0.1 • Published 6 years ago
ivolve-cloud7-logger v1.0.1
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
consolefor only showing logs in console. - Set
kibanafor only send logs to kibana, don't show in console. - Set
bothfor both showing in console and sending to kibana.