log/EntryProcessor.Process新增ctx参数并且把ReadonlyEntry中的Context移除;
parent
0f50bc0e73
commit
b0180865fc
@ -1,8 +1,10 @@
|
||||
package logsdk
|
||||
|
||||
import "context"
|
||||
|
||||
// EntryProcessor 处理日志记录
|
||||
type EntryProcessor interface {
|
||||
Process(entry ReadonlyEntry)
|
||||
Process(ctx context.Context, entry ReadonlyEntry)
|
||||
}
|
||||
|
||||
type levelProcessors [LevelCount][]EntryProcessor
|
||||
|
Loading…
Reference in New Issue