Skip to content
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

请问cron的log如何去掉 按秒跑 打印的太多了 控制台调试不好找其他内容 #62

Closed
hanwenbo opened this issue Sep 10, 2024 · 2 comments

Comments

@hanwenbo
Copy link
Contributor

cronOpts := []cron.Option{

我看这里默认加了withLog 但不知道怎么去掉

@zhufuyi
Copy link
Owner

zhufuyi commented Sep 10, 2024

下个版本添加一个开关控制是否打印INFO,默认是打印的,初始化示例如下:

gocron.Init(
	gocron.WithLogger(logger.Get(), true), // true表示设置忽略打印INFO信息
)

@hanwenbo
Copy link
Contributor Author

@zhufuyi 最新版本支持了不 我看代码好像是没有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants