mushonnip / logysia

Logysia is a logging library for the Elysia Web Framework for Bun (JS/TS).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logysia

A logging middleware for the Elysia web framework. Developed with Bun.

Installation

bun add @grotto/logysia

Usage/Examples

import {logger} from '@grotto/logysia';
import { Elysia } from "elysia";


if (import.meta.main) {
    const app = new Elysia()
        .use(logger())
        .get("/", ctx => "Hello, world!");
}

Result

Alt text

Logysia also supports printing when there are errors in your application.

About

Logysia is a logging library for the Elysia Web Framework for Bun (JS/TS).

License:MIT License


Languages

Language:TypeScript 100.0%