chore: add granular logging to the logger (#16734)

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update turbo.json

* Update trpc-provider.tsx

* Update logger.ts

* update prisma index

* Update trpc.ts

* Update trpc-provider.tsx

* Update trpc.ts

* Update .env.example

* Update logger.ts
This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2024-09-20 09:06:37 +00:00
1 parent e0922c5ee0
commit c4a1382982
7 files changed
+48 -7

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { Logger } from "tslog";
import { IS_PRODUCTION } from "./constants";
const logger = new Logger({
minLevel: !!process.env.NEXT_PUBLIC_DEBUG ? 2 : 4,
minLevel: parseInt(process.env.NEXT_PUBLIC_LOGGER_LEVEL ?? "4"),
maskValuesOfKeys: ["password", "passwordConfirmation", "credentials", "credential"],
prettyLogTimeZone: IS_PRODUCTION ? "UTC" : "local",
prettyErrorStackTemplate: " • {{fileName}}\t{{method}}\n\t{{filePathWithLine}}", // default