Skip to content

fix(log): 优化文案,调整缩进 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release/3.0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/zh/mini-program/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ MiniProgramApp, err := miniProgram.NewMiniProgram(&miniProgram.UserConfig{
HttpDebug: true,
Log: miniProgram.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/mini-program/info.log",
Error: "/Users/user/wechat/mini-program/error.log",
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/mini-program/info.log",
Error: "/Users/user/wechat/mini-program/error.log",
Stdout: false, // 是否打印在终端
},
// 可选,不传默认走程序内存
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/official-account/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ OfficialAccountApp, err := officialAccount.NewOfficialAccount(&officialAccount.U

Log: officialAccount.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/official-account/info.log",
Error: "/Users/user/wechat/official-account/error.log",
Error: "/Users/user/wechat/official-account/error.log",
Stdout: false, // 是否打印在终端
},

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/official-account/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ OfficialAccountApp, err := officialAccount.NewOfficialAccount(&officialAccount.U
// ResponseType: os.Getenv("response_type"),
Log: officialAccount.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/official-account/info.log",
Error: "/Users/user/wechat/official-account/error.log",
Stdout: false, // 是否打印在终端
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/open-platform/authFlow.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OpenPlatformApp, err := openPlatform.NewOpenPlatform(&openPlatform.UserConfig{

Log: openPlatform.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/platform/info.log",
Error: "/Users/user/wechat/platform/error.log",
}, // 日志输出位置
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/payment/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ PaymentService, err := payment.NewPayment(&payment.UserConfig{
HttpDebug: true,
Log: payment.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/payment/info.log",
Error: "/Users/user/wechat/payment/error.log",
Error: "/Users/user/wechat/payment/error.log",
Stdout: false, // 是否打印在终端
},
Http: payment.Http{
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/start/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PowerWeChat提供了日志模块,默认情况下,日志会输出到控制台

Log: work.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/work/info.log",
Error: "/Users/user/wechat/work/error.log",
Stdout: false, // 是否打印在终端
Expand All @@ -159,7 +159,7 @@ import (
Log: miniProgram.Log{
Driver: &drivers.SimpleLogger{},
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/mini-program/info.log",
Error: "/Users/user/wechat/mini-program/error.log",
Stdout: false, // 是否打印在终端
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/start/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {
},
Log: work.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/info.log",
Error: "/Users/user/wechat/error.log",
Stdout: false, // 是否打印在终端
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/wecom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ WeComApp, err := work.NewWork(&work.UserConfig{
},
Log: work.Log{
Level: "debug",
// 可以重定向到你的目录下,如果设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
// 可以重定向到你的目录下,如果未设置File和Error,默认会在当前目录下的wechat文件夹下生成日志
File: "/Users/user/wechat/work/info.log",
Error: "/Users/user/wechat/work/error.log",
Error: "/Users/user/wechat/work/error.log",
Stdout: false, // 是否打印在终端
},
HttpDebug: true,
Expand Down