Documentation ¶
Index ¶
- Variables
- func AnyFields(keysAndValues ...interface{}) []zap.Field
- func Cid(key string, c mh.Multihash) zapcore.Field
- func Cids(key string, cids ...mh.Multihash) zapcore.Field
- func Fields(fields ...zapcore.Field) []zapcore.Field
- func Multiaddrs(key string, mas ...multiaddr.Multiaddr) zapcore.Field
- func PeerID(key string, id peer.ID) zapcore.Field
- func PeerIDs(key string, ids ...peer.ID) zapcore.Field
- func Percent(key string, p int) zapcore.Field
- func ShortCid(cid mh.Multihash) string
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var Duration = zap.Duration
View Source
var Error = zap.Error
View Source
var Int = zap.Int
View Source
var String = zap.String
Re-export relevant zap functions
View Source
var Strings = zap.Strings
Functions ¶
func Multiaddrs ¶
Types ¶
type Logger ¶
Logger embeds zap.Logger so that it inherits its public functions.
func NewDevelopmentLogger ¶
NewDevelopmentLogger is used for testing.
Click to show internal directories.
Click to hide internal directories.