Skip to content

cybercoder-naj/logestic

Repository files navigation

Logestic

npm version

An advanced and customisable logging library for ElysiaJS.

fancy preset
Table of Contents

Installation

Add the package to your Elysia Project via bun.

  bun add logestic

Note: You must have [email protected] installed in your project.

Usage

There are two ways to add logging to your Elysia application. The quickest way to use this logger is using a preset.

import { Elysia } from 'elysia';
import { Logestic } from 'logestic';

const app = new Elysia()
  .use(Logestic.preset('common'))
  .get('/', () => "Hello from server")
  /* ... */
  .listen(3000, () => {
    console.log("Server is running on port 3000")
  });

These presets available to use.

Documentation

To view the full documentation, view the wiki.

Contributing Guidelines

See CONTRIBUTING.md

License

MIT