Kino
Kino is a lightweight logging library built for Discord bots. It writes timestamped, colored lines to the console, and sends errors to Sentry when you configure it.
Work in progress
Kino is still under construction: its API may change.
- Six levels:
log,info,success,warn,error,debug, each with its own color. - A global logger and per-module loggers, whose name appears on every line.
- Sentry integration:
error()sends the exception with the module as a tag, andinit()sets up the SDK with integrations suited to a bot. - Tracing an operation:
trace(uid)returns an error handler that tags the exception with an identifier.
Example
import Kino from '@fca.gg/kino';
Kino.init({
sentry: {dsn: process.env.SENTRY_DSN},
});
Kino.info('Bot started');
const logger = new Kino('Commands');
logger.success('42 commands loaded');
[09/24/2026, 06:02:11 PM - GLOBAL - INFO] Bot started
[09/24/2026, 06:02:11 PM - Commands - SUCCESS] 42 commands loaded
Installation
npm install @fca.gg/kino
License
Kino is released under the AGPL v3 license with a linking exception: using it as a dependency does not require your application to be open source. The source code is on GitHub.