Logging

Effective logging enables developers to monitor API behavior, diagnose issues, and improve application performance. It provides insights into application flow, helps in identifying bottlenecks, and ensures that the API responds correctly to requests.

Pino is a fast, low-overhead logging library that is commonly used with Fastify, a web framework that prioritizes speed and efficiency. It offers minimal performance impact while providing rich logging capabilities essential for robust application monitoring.

In development environments, pino-pretty is often used in conjunction with Pino to format logs for better readability.

Usage

You can use logging by using the novel/logger library

feature.ts
import logger from 'novel/logger';

logger.info('Something happened');
logger.error('Something is wrong');
logger.fatal('HELP!');

It follows the pino logging signature.

If you are looking for Events or Account Activities or Organization Activities, check it in their own documentation below

Events →

Account Activities →

Organization Activities →

Changelog

  • 2024-12-20 - Initial Documentation

Last updated

Was this helpful?