Skip to content

Commit

Permalink
feat: use nice logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqmanuja committed Aug 31, 2024
1 parent effafc1 commit 28caa5b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 136 deletions.
6 changes: 2 additions & 4 deletions server/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import cors from "@elysiajs/cors";
import swagger from "@elysiajs/swagger";
import { logger } from "@tqman/nice-logger";
import { Elysia } from "elysia";

import { api } from "./api";
import { isProd } from "./env";
import { logger } from "./lib/logger";
import { pluginConditionally } from "./utils/elysia";

export const app = new Elysia()
.use(cors())
.use(swagger())
.use(pluginConditionally(!isProd, logger))
.use(logger())
.use(api);
83 changes: 0 additions & 83 deletions server/src/lib/logger/formatters.ts

This file was deleted.

41 changes: 0 additions & 41 deletions server/src/lib/logger/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions server/src/utils/elysia.ts

This file was deleted.

0 comments on commit 28caa5b

Please sign in to comment.