diff --git a/bun.lockb b/bun.lockb index d945ecb..4ea670f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 077b3b6..a1ada7a 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev": "bun run --hot src/index.ts" }, "dependencies": { + "@bogeychan/elysia-logger": "^0.0.17", "@elysiajs/cors": "0.8.0", "@elysiajs/swagger": "0.8.5", "cheerio": "1.0.0-rc.12", diff --git a/src/index.ts b/src/index.ts index fa48d27..548310d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,6 +2,7 @@ import { Elysia, t } from 'elysia' import { cors } from '@elysiajs/cors' import { swagger } from '@elysiajs/swagger' import { rateLimit } from 'elysia-rate-limit' +import { logger } from '@bogeychan/elysia-logger' import { getList } from './functions/getList' import { getLotto } from './functions/getLotto' @@ -27,6 +28,7 @@ const app = new Elysia() exclude: ['/', '/ping'], }) ) + .use(logger()) .model(model) .get('/', ({ set }) => (set.redirect = '/swagger')) .get('/ping', () => ({