From 04c581a25e5bc9e157ccd75f206b8006b2d9d123 Mon Sep 17 00:00:00 2001 From: amrit Date: Fri, 7 Mar 2025 10:32:33 +0530 Subject: [PATCH] docs: Update README (#19815) --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6f481c5414..175f79beb0 100644 --- a/README.md +++ b/README.md @@ -172,24 +172,25 @@ yarn dx ``` #### Development tip +1. Add `export NODE_OPTIONS=“--max-old-space-size=16384”` to your shell script to increase the memory limit for the node process. Alternatively, you can run this in your terminal before running the app. Replace 16384 with the amount of RAM you want to allocate to the node process. -Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\ -Where {level} can be one of the following: +2. Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\ + Where {level} can be one of the following: -`0` for silly \ -`1` for trace \ -`2` for debug \ -`3` for info \ -`4` for warn \ -`5` for error \ -`6` for fatal + `0` for silly \ + `1` for trace \ + `2` for debug \ + `3` for info \ + `4` for warn \ + `5` for error \ + `6` for fatal -When you set `NEXT_PUBLIC_LOGGER_LEVEL={level}` in your .env file, it enables logging at that level and higher. Here's how it works: + When you set `NEXT_PUBLIC_LOGGER_LEVEL={level}` in your .env file, it enables logging at that level and higher. Here's how it works: -The logger will include all logs that are at the specified level or higher. For example: \ + The logger will include all logs that are at the specified level or higher. For example: \ -- If you set `NEXT_PUBLIC_LOGGER_LEVEL=2`, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and (fatal) will be logged. \ -- If you set `NEXT_PUBLIC_LOGGER_LEVEL=3`, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \ + - If you set `NEXT_PUBLIC_LOGGER_LEVEL=2`, it will log from level 2 (debug) upwards, meaning levels 2 (debug), 3 (info), 4 (warn), 5 (error), and (fatal) will be logged. \ + - If you set `NEXT_PUBLIC_LOGGER_LEVEL=3`, it will log from level 3 (info) upwards, meaning levels 3 (info), 4 (warn), 5 (error), and 6 (fatal) will be logged, but level 2 (debug) and level 1 (trace) will be ignored. \ ```sh echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env