Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cybercoder-naj/logestic

An advanced and customisable logging library for ElysiaJS
https://github.com/cybercoder-naj/logestic

backend bun elysiajs logging middleware typescript

Last synced: 3 months ago
JSON representation

An advanced and customisable logging library for ElysiaJS

Awesome Lists containing this project

README

        

# Logestic

[![npm version](https://badge.fury.io/js/logestic.svg)](https://badge.fury.io/js/logestic)

[Demo](./preview/src/index.ts) • [Documentation](https://github.com/cybercoder-naj/logestic/wiki) • [Changelog](./CHANGELOG.md) • [License](./LICENSE)

An advanced and customisable logging library for [ElysiaJS](https://elysiajs.com).


fancy preset
= v1.2.2 | v1.1.3 | ✅ |

## Usage

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

```typescript
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](https://github.com/cybercoder-naj/logestic/wiki/Presets) available to use.

## Contributing Guidelines

See [CONTRIBUTING.md](./CONTRIBUTING.md)