Closed yoyofx closed 1 year ago
只要实现日志接口就可以集成到该项目,参考:https://github.com/xxl-job/xxl-job-executor-go/blob/master/log.go
我是指 LogHandler
我是指 LogHandler
LogHandler 是个接口函数,,直接实现你的逻辑,把你实现的函数设置进去即可: 实现接口: func(req LogReq) LogRes 设置: exec.LogHandler(你自己实现的LogHandler)
明白,我的意思是否sdk提供默认的实现,跟java实现一样,如果需要我想可以贡献一个
欢迎为该项目贡献代码
案例:
https://github.com/yoyofx/yoyogo/tree/dev/examples/xxl-job-console 已支持xxl-job日志(实时获取)