Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chneau/elysia-logger
Elysia logger plugin
https://github.com/chneau/elysia-logger
elysia elysia-plugin elysiajs logger
Last synced: about 6 hours ago
JSON representation
Elysia logger plugin
- Host: GitHub
- URL: https://github.com/chneau/elysia-logger
- Owner: chneau
- License: mit
- Created: 2024-07-26T16:28:38.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-10T09:59:30.000Z (28 days ago)
- Last Synced: 2024-10-10T10:58:03.243Z (28 days ago)
- Topics: elysia, elysia-plugin, elysiajs, logger
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@chneau/elysia-logger
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elysia-logger
## Installation
```bash
bun install @chneau/elysia-logger
```## Example
```ts
import { logger } from "@chneau/elysia-logger";
import { Elysia } from "elysia";const app = new Elysia().use(logger()).listen(8080);
/*
<-- GET /logout
--> GET /logout 200 in 0 ms
<-- POST /login
--> POST /login 200 in 5 ms
/*
```## Changelog
### [1.0.2] - 2024-08-08
### Added
- Tests.
#### Fixed
- Properly log error requests.
### [1.0.1] - 2024-08-03
#### Fixed
- Package npm link.