Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tanishqmanuja/nice-logger

🪵 Nice logger for Elysia
https://github.com/tanishqmanuja/nice-logger

elysia elysiajs logger

Last synced: about 2 months ago
JSON representation

🪵 Nice logger for Elysia

Awesome Lists containing this project

README

        

![Logo](https://raw.github.com/tanishqmanuja/static/main/banners/nice-logger.webp?maxAge=2592000)

"Not the nicest, but a pretty nice and sweet logger for Elysia."

[![Downloads][downloads-shield]][npm-url]
[![NPM Version][npm-shield]][npm-url]
![GitHub Workflow Status][ci-status-shield]
[![License][license-shield]][license-url]

[ci-status-shield]: https://img.shields.io/github/actions/workflow/status/tanishqmanuja/nice-logger/release.yaml?branch=main&style=for-the-badge&label=ci
[downloads-shield]: https://img.shields.io/npm/dm/%40tqman%2Fnice-logger?style=for-the-badge
[license-shield]: https://img.shields.io/github/license/tanishqmanuja/apkmirror-downloader?style=for-the-badge
[license-url]: https://github.com/tanishqmanuja/nice-logger/blob/main/LICENSE.md
[npm-shield]: https://img.shields.io/npm/v/@tqman/nice-logger?style=for-the-badge
[npm-url]: https://www.npmjs.com/package/@tqman/nice-logger

## 🚀 Installation

```bash
bun add @tqman/nice-logger
```

## 📃 Usage

```ts
import Elysia from "elysia";
import { logger } from "@tqman/nice-logger";

const app = new Elysia()
.use(logger({
mode: "live", // "live" or "combined" (default: "combined")
}));
.get("/", "Hello via Elysia!")
.listen(3000);
```

## 🍀 Show your Support

Give a ⭐️ if this project helped you!