Skip to content

About

Winston-based logger for AsenaJS on Bun with colored, timestamped console output and profiling, plugged into the framework as its logger.

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Repository files navigation

AsenaLogger

Version Bun Version

Winston-based logger for the Asena framework, with colored, timestamped console output and profiling.

Requirements: Bun 1.4+, @asenajs/asena 0.11+.

Installation

bun add @asenajs/asena-logger

Quick Start

import { AsenaServerFactory } from '@asenajs/asena';
import { createErgenecoreAdapter } from '@asenajs/ergenecore';
import { AsenaLogger } from '@asenajs/asena-logger';

export const logger = new AsenaLogger();

const server = await AsenaServerFactory.create({
  adapter: createErgenecoreAdapter(),
  logger,
  port: 3000,
});

await server.start();

logger.info('User created', { userId: 42 });

Documentation

Full documentation: asena.sh/docs/packages/logger

License

MIT License - see LICENSE file.

About

Winston-based logger for AsenaJS on Bun with colored, timestamped console output and profiling, plugged into the framework as its logger.

Topics

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages