Novel
Get NovelGuidesAPI Reference
Latest - 2025.1.0
Latest - 2025.1.0
  • Welcome to Novel
  • Start
  • Philosophy
  • Tech Stack
  • Releases
  • Versions
  • Changelog
  • License
  • Privacy
  • Warranty
  • Security Policy
  • Errors
    • Cannot start Novel
    • Unauthorized
    • Invalid Session
    • Validation Failed
  • Novel Server
    • Getting Started
    • Project Structure
    • With Novel Web
    • Configuration
    • Novel CLI
      • novel dev
      • novel start
      • novel new
    • Novel API
      • API Reference
    • Database
      • Caching
    • Migrations
    • Models
    • Routing
      • Route Directives
      • Middleware
      • Request Helpers
      • Schema
    • Sessions
    • Authentication
      • Passwords
      • Magic Links
      • Two-Factor Authentication
      • Forget Password
      • Email Verification
      • OAuth2 Support
    • Authorization
    • Users
    • Organizations
    • Subscriptions
    • Pricing
    • Validation
    • Mail
    • Notifications
    • API Keys
    • Events
    • Errors
    • Feature Flags
    • Uploading Files
    • Testing
    • Scheduled Cron Jobs
    • Background Jobs
    • Sockets
    • Logging
    • Telemetry
    • Deployment
  • Novel Web
    • Getting Started
    • Configuration
    • Project Structure
    • Routing
    • Layout and Styles
    • Authentication
    • Authorization
    • Requests
    • Request Files
    • Validation
    • Components
      • Button
      • Alerts
      • Copybox
      • Inline Notify
      • Input
      • Select
      • Toast
      • Toggle
      • Upload
      • Stripe Card
    • Hooks
      • useSession
      • useMobile
      • getSession
      • useFeature
      • useAuthorized
      • useNotification
      • useSocket
    • Localstorage
    • Errors
    • Internationalization (i18n)
    • Constants
    • Feature Flags
    • Testing
    • Telemetry
    • Deployment
    • Devtools (Alpha)
Powered by GitBook
On this page
  • Usage
  • Changelog

Was this helpful?

  1. Novel Server

Logging

Last updated 5 months ago

Was this helpful?

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

Changelog

  • 2024-12-20 - Initial Documentation

Events →
Account Activities →
Organization Activities →
Pino - Super fast, all natural JSON logger for Node.js
Logo