Documentation ¶
Index ¶
- func Adjust(logger *zap.Logger, options ...zap.Option) *zap.Logger
- func ConfigChangeField(key string, req *rpc.ConfigChangeRequest) zap.Field
- func ConfigChangeFieldWithHeartbeatResp(key string, req rpcpb.ResourceHeartbeatRsp) zap.Field
- func ConfigChangesField(key string, changes []rpc.ConfigChangeRequest) zap.Field
- func ConfigChangesFieldWithHeartbeatResp(key string, req rpcpb.ResourceHeartbeatRsp) zap.Field
- func EntryCountField(count int) zap.Field
- func EpochField(key string, epoch metapb.ResourceEpoch) zap.Field
- func GetDefaultZapLogger(options ...zap.Option) *zap.Logger
- func GetDefaultZapLoggerWithLevel(level zapcore.Level, options ...zap.Option) *zap.Logger
- func GetPanicZapLogger(options ...zap.Option) *zap.Logger
- func HexField(key string, data []byte) zap.Field
- func IndexField(index uint64) zap.Field
- func ListenAddressField(address string) zap.Field
- func NodeField(name string) zap.Field
- func RaftMessageField(key string, msg meta.RaftMessage) zap.Field
- func RaftRequestField(key string, req *rpc.Request) zap.Field
- func RaftResponseField(key string, resp *rpc.Response) zap.Field
- func ReasonField(why string) zap.Field
- func ReplicaField(key string, Replica metapb.Replica) zap.Field
- func ReplicaIDField(id uint64) zap.Field
- func ReplicaIDsField(key string, ids []uint64) zap.Field
- func ReplicasField(key string, Replicas []metapb.Replica) zap.Field
- func RequestBatchField(key string, req rpc.RequestBatch) zap.Field
- func RequestIDField(data []byte) zap.Field
- func RequestsField(key string, reqs []rpc.Request) zap.Field
- func ResourceField(id uint64) zap.Field
- func ResponseBatchField(key string, resp rpc.ResponseBatch) zap.Field
- func ResponsesField(key string, resps []rpc.Response) zap.Field
- func ShardField(key string, shard meta.Shard) zap.Field
- func ShardIDField(id uint64) zap.Field
- func SnapshotField(ss raftpb.Snapshot) zap.Field
- func SourceContainerField(id uint64) zap.Field
- func StoreIDField(id uint64) zap.Field
- func TargetContainerField(id uint64) zap.Field
- func WorkerField(id uint64) zap.Field
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigChangeField ¶
func ConfigChangeField(key string, req *rpc.ConfigChangeRequest) zap.Field
ConfigChangeField return formated change Replica zap string field
func ConfigChangeFieldWithHeartbeatResp ¶
func ConfigChangeFieldWithHeartbeatResp(key string, req rpcpb.ResourceHeartbeatRsp) zap.Field
ConfigChangeFieldWithHeartbeatResp return formated change Replica zap string field
func ConfigChangesField ¶
func ConfigChangesField(key string, changes []rpc.ConfigChangeRequest) zap.Field
ConfigChangesField return formated change Replica zap string field
func ConfigChangesFieldWithHeartbeatResp ¶
func ConfigChangesFieldWithHeartbeatResp(key string, req rpcpb.ResourceHeartbeatRsp) zap.Field
ConfigChangesFieldWithHeartbeatResp return formated change Replica zap string field
func EntryCountField ¶
EntryCountField returns zap.IntField
func EpochField ¶
func EpochField(key string, epoch metapb.ResourceEpoch) zap.Field
EpochField return formated epoch zap string field
func GetDefaultZapLogger ¶
GetDefaultZapLogger get default zap logger
func GetDefaultZapLoggerWithLevel ¶
GetDefaultZapLoggerWithLevel get default zap logger
func GetPanicZapLogger ¶
GetPanicZapLogger returns a zap logger which will panic on Fatal(). The returned zap logger should only be used in tests.
func ListenAddressField ¶
ListenAddressField return address field
func RaftMessageField ¶
func RaftMessageField(key string, msg meta.RaftMessage) zap.Field
RaftMessageField return formated raft message zap string field
func RaftRequestField ¶
RaftRequestField return formated raft request zap string field
func RaftResponseField ¶
RaftResponseField return formated raft response zap string field
func ReplicaField ¶
ReplicaField returns Replica zap field
func ReplicaIDField ¶
ReplicaIDField returns zap.Uint64Field
func ReplicaIDsField ¶
ReplicaIDsField returns zap.Uint64Field
func ReplicasField ¶
ReplicasField return Replicas zap field
func RequestBatchField ¶
func RequestBatchField(key string, req rpc.RequestBatch) zap.Field
RequestBatchField request batch field
func RequestIDField ¶
RequestIDField returns zap.StringField, use hex.EncodeToString as string value
func RequestsField ¶
RequestsField []rpc.Request zap field
func ResponseBatchField ¶
func ResponseBatchField(key string, resp rpc.ResponseBatch) zap.Field
ResponseBatchField rpc.ResponseBatch zap field
func ResponsesField ¶
ResponsesField []rpc.Response zap field
func ShardField ¶
ShardField return formated shard zap string field
func SnapshotField ¶
SnapshotField returns snapshot field
func SourceContainerField ¶
SourceContainerField returns source container field
func TargetContainerField ¶
TargetContainerField returns target container field
Types ¶
This section is empty.