Documentation ¶
Index ¶
- func AbbreviatedArray(key string, elements interface{}, marshalFunc func(interface{}) []string) zap.Field
- func File(file *backup.File) zap.Field
- func Files(fs []*backup.File) zap.Field
- func Key(fieldKey string, key []byte) zap.Field
- func Keys(keys [][]byte) zap.Field
- func Leader(peer *metapb.Peer) zap.Field
- func Region(region *metapb.Region) zap.Field
- func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zap.Field
- func SSTMeta(sstMeta *import_sstpb.SSTMeta) zap.Field
- func ShortError(err error) zap.Field
- type AbbreviatedArrayMarshaler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbbreviatedArray ¶
func AbbreviatedArray( key string, elements interface{}, marshalFunc func(interface{}) []string, ) zap.Field
AbbreviatedArray constructs a field that abbreviates an array of elements.
func RewriteRule ¶
func RewriteRule(rewriteRule *import_sstpb.RewriteRule) zap.Field
RewriteRule make the zap fields for a rewrite rule.
func SSTMeta ¶
func SSTMeta(sstMeta *import_sstpb.SSTMeta) zap.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).
Types ¶
type AbbreviatedArrayMarshaler ¶
type AbbreviatedArrayMarshaler []string
AbbreviatedArrayMarshaler abbreviates an array of elements.
func (AbbreviatedArrayMarshaler) MarshalLogArray ¶
func (abb AbbreviatedArrayMarshaler) MarshalLogArray(encoder zapcore.ArrayEncoder) error
MarshalLogArray implements zapcore.ArrayMarshaler.
Click to show internal directories.
Click to hide internal directories.