Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cybercoder-naj/logestic
- Owner: cybercoder-naj
- License: mit
- Created: 2024-03-16T05:13:06.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T13:16:40.000Z (8 months ago)
- Last Synced: 2024-07-09T13:43:40.867Z (6 months ago)
- Topics: backend, bun, elysiajs, logging, middleware, typescript
- Language: TypeScript
- Homepage:
- Size: 311 KB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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).
= 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)