mirror of
https://github.com/foomo/keel.git
synced 2025-10-16 12:35:34 +00:00
feat: add code package field
This commit is contained in:
parent
319d6940ed
commit
6f89b110b1
@ -6,6 +6,7 @@ import (
|
||||
|
||||
const (
|
||||
CodeInstanceKey = "code_instance"
|
||||
CodePackageKey = "code_package"
|
||||
CodeMethodKey = "code_method"
|
||||
CodeLineKey = "code_line"
|
||||
)
|
||||
@ -14,6 +15,10 @@ func FCodeInstance(v string) zap.Field {
|
||||
return zap.String(CodeInstanceKey, v)
|
||||
}
|
||||
|
||||
func FCodePackage(v string) zap.Field {
|
||||
return zap.String(CodePackageKey, v)
|
||||
}
|
||||
|
||||
func FCodeMethod(v string) zap.Field {
|
||||
return zap.String(CodeMethodKey, v)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user