New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nl-framework/logger

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nl-framework/logger

Structured logger for nl-framework with pluggable transports and context-aware logging.

latest
npmnpm
Version
0.3.5
Version published
Maintainers
1
Created
Source

@nl-framework/logger

Structured logging system for the Nael Framework with JSON output, contextual metadata, and transport adapters optimized for Bun.

Installation

bun add @nl-framework/logger

Highlights

  • Contextual logging – attach correlation IDs and per-request metadata automatically across providers.
  • Pluggable transports – stream logs to stdout, files, or external systems with minimal configuration.
  • DI integration – inject loggers into services to keep observability concerns consistent across the app.

Quick start

import { Logger } from '@nl-framework/logger';
import { Application } from '@nl-framework/core';

const logger = new Logger({ service: 'users-api' });
const app = await Application.create(AppModule, { logger });
await app.init();

logger.info('Application booted');

Create child loggers for request scopes:

const requestLogger = logger.child({ requestId: crypto.randomUUID() });
requestLogger.info('Incoming request', { path: '/users' });

License

Apache-2.0

Keywords

logger

FAQs

Package last updated on 06 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts