Skip to content

Package

logger v0.4.4

Changelog

seedcordseedcord

The whole Discord bot, typed end to end

Website · Guide · Reference · Discord

npm node bun license

About

@seedcord/logger writes log lines into named channels, so you can quiet the framework's startup and dispatch output while keeping your own. seedcord registers its channels through FRAMEWORK_CHANNELS. You register whatever else your bot logs.

The root entry stays runtime-agnostic and writes through ObjectConsoleSink. @seedcord/logger/node swaps in the winston sinks for pretty console output and rotating files.

Until v1.0.0, minor versions can break.

Installation

Your transport already re-exports this. Install it directly for a standalone tool:

pnpm add @seedcord/logger

Usage

import { Logger } from '@seedcord/logger';
import { installNodeDefaults } from '@seedcord/logger/node';

installNodeDefaults();

const logger = new Logger('Payments', { channel: 'app' });
logger.info('charge captured', { id });

paint holds the truecolor tones the framework uses for interpolated values. logger.utils renders multi-line output as a summary, a block, or entries.