Documentation ¶
Index ¶
- func File(file *backup.File) zapcore.Field
- func Files(fs []*backup.File) zapcore.Field
- func InitRedact(redactLog bool)
- func NeedRedact() bool
- func RedactString(arg string) string
- func RedactStringer(arg fmt.Stringer) fmt.Stringer
- func Region(region *metapb.Region) zapcore.Field
- func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zapcore.Field
- func SSTMeta(sstMeta *import_sstpb.SSTMeta) zapcore.Field
- func ShortError(err error) zapcore.Field
- func WrapKey(key []byte) fmt.Stringer
- func WrapKeys(keys [][]byte) zapcore.ArrayMarshaler
- func ZapRedactReflect(key string, val interface{}) zapcore.Field
- func ZapRedactStringer(key string, arg fmt.Stringer) zap.Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedactString ¶
RedactString receives string argument and return omitted information if redact log enabled
func RedactStringer ¶
RedactStringer receives stringer argument and return omitted information if redact log enabled
func RewriteRule ¶
func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zapcore.Field
RewriteRule make the zap fields for a rewrite rule.
func SSTMeta ¶
func SSTMeta(sstMeta *import_sstpb.SSTMeta) zapcore.Field
SSTMeta make the zap fields for a SST meta.
func ShortError ¶
ShortError make the zap field to display error without verbose representation (e.g. the stack trace).
func WrapKeys ¶
func WrapKeys(keys [][]byte) zapcore.ArrayMarshaler
WrapKeys wrap keys as an ArrayMarshaler that can print proper upper hex format.
func ZapRedactReflect ¶
ZapRedactReflect receives zap.Reflect and return omitted information if redact log enabled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.