Spaces:
Runtime error
Runtime error
Download src/lib/server/logger.ts from evijit/pluralchat: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/spaces/evijit/pluralchat/resolve/refs%2Fpr%2F1/src/lib/server/logger.ts
- Command line
-
hf download hf://spaces/evijit/pluralchat@refs/pr/1/src/lib/server/logger.ts
-
curl -L -o logger.ts https://huggingface.co/spaces/evijit/pluralchat/resolve/refs%2Fpr%2F1/src/lib/server/logger.ts
346 Bytes
| import pino from "pino"; | |
| import { dev } from "$app/environment"; | |
| import { config } from "$lib/server/config"; | |
| let options: pino.LoggerOptions = {}; | |
| if (dev) { | |
| options = { | |
| transport: { | |
| target: "pino-pretty", | |
| options: { | |
| colorize: true, | |
| }, | |
| }, | |
| }; | |
| } | |
| export const logger = pino({ ...options, level: config.LOG_LEVEL || "info" }); | |