FreeScheduler icon indicating copy to clipboard operation
FreeScheduler copied to clipboard

FreeScheduler_tasklog 如何不生成日志

Open alanchen78 opened this issue 2 years ago • 3 comments

如何关闭日志功能 。因为任务执行频繁时,大量日志插入一定程序上也影响效率 。

alanchen78 avatar Oct 19 '22 06:10 alanchen78

参考代码,重写 OnExecuted 方法 https://github.com/2881099/FreeScheduler/blob/master/FreeScheduler/TaskHandlers/FreeSqlHandler.cs

或者用 Redis 持久化。

2881099 avatar Oct 19 '22 07:10 2881099

谢谢,已微信小小赞助一样。

alanchen78 avatar Oct 19 '22 07:10 alanchen78

谢谢老板支持

2881099 avatar Oct 19 '22 07:10 2881099