Skip to content

Commit 04c581a

Browse files
authored
docs: Update README (#19815)
1 parent 5ef1313 commit 04c581a

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,25 @@ yarn dx
172172
```
173173

174174
#### Development tip
175+
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.
175176

176-
Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\
177-
Where {level} can be one of the following:
177+
2. Add `NEXT_PUBLIC_LOGGER_LEVEL={level}` to your .env file to control the logging verbosity for all tRPC queries and mutations.\
178+
Where {level} can be one of the following:
178179

179-
`0` for silly \
180-
`1` for trace \
181-
`2` for debug \
182-
`3` for info \
183-
`4` for warn \
184-
`5` for error \
185-
`6` for fatal
180+
`0` for silly \
181+
`1` for trace \
182+
`2` for debug \
183+
`3` for info \
184+
`4` for warn \
185+
`5` for error \
186+
`6` for fatal
186187

187-
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:
188+
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:
188189

189-
The logger will include all logs that are at the specified level or higher. For example: \
190+
The logger will include all logs that are at the specified level or higher. For example: \
190191

191-
- 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. \
192-
- 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. \
192+
- 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. \
193+
- 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. \
193194

194195
```sh
195196
echo 'NEXT_PUBLIC_LOGGER_LEVEL=3' >> .env

0 commit comments

Comments
 (0)