a cache for slack profile pictures and emojis

feat: add logger

Changed files
+8 -1
src
bun.lockb

This is a binary file and will not be displayed.

+1
package.json
···
},
"dependencies": {
"@elysiajs/swagger": "^1.1.6",
+
"@tqman/nice-logger": "^1.0.7",
"@types/node-cron": "^3.0.11",
"elysia": "latest",
"node-cron": "^3.0.3"
+7 -1
src/index.ts
···
import { Elysia, t } from "elysia";
+
import { logger } from "@tqman/nice-logger";
import { swagger } from "@elysiajs/swagger";
import { version } from "../package.json";
import { SlackCache } from "./cache";
···
);
const app = new Elysia()
+
.use(
+
logger({
+
mode: "combined",
+
}),
+
)
.use(
swagger({
documentation: {
···
.listen(process.env.PORT ?? 3000);
console.log(
-
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port} at ${version}`,
+
`\n---\n\n🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port} at v${version}\n\n---\n`,
);