Skip to content

Commit

Permalink
docs: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
baozouai committed Jul 29, 2023
1 parent bce5e5e commit abbfda7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ play play:astro # 对应astro

具体配置可以看 [vue/vite.config.ts](./playgrounds/vue/vite.config.ts) 或者 [react/vite.config.ts](./playgrounds/react/vite.config.ts)[astro.config.mjs](./playgrounds/astro/astro.config.mjs)


> 📢 注意,从0.5.0开始,如果打印文件名的话,会将log所在行放到文件名后面,类似这样:
> ![img](./assets/file_end_line.png)
比如说,你不喜欢小 🚀,你喜欢猪猪 🐖,那可以配置 preTip 为 🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖:

![img](./assets/pig_pretip.png)
Expand All @@ -132,7 +136,7 @@ play play:astro # 对应astro

比如说,你希望知道log所在的文件名,那么可以配置enableFileName为true(当然默认就是true):

![img](./assets/filename.png)
![img](./assets/file_end_line.png)

如果文件路径太长:
![img](./assets/deep_file.png)
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ pnpm play:astro # corresponds to astro

For specific configuration, see [vue/vite.config.ts](./playgrounds/vue/vite.config.ts) or [react/vite.config.ts](./playgrounds/react/vite.config.ts), [astro.config.mjs](./playgrounds/astro/astro.config.mjs)


> 📢 Note that since 0.5.0, if you print the filename, it puts the line where the log is after the filename, something like this:
> ![img](./assets/file_end_line.png)
For example, if you don't like small 🚀, but you like piggy 🐖, you can configure preTip as 🐖🐖🐖🐖🐖🐖🐖🐖🐖🐖:

![img](./assets/pig_pretip.png)
Expand All @@ -135,7 +139,7 @@ Of course, you can also specify it at will, such as using a dog head 🐶 to sep

For example, if you want to know the file name where the log is located, you can configure enableFileName to be true (of course the default is true):

![img](./assets/filename.png)
![img](./assets/file_end_line.png)

If the file path is too long:
![img](./assets/deep_file.png)
Expand Down

0 comments on commit abbfda7

Please sign in to comment.