Documentation ¶
Overview ¶
Package logging contains degitx logging API, mapping and configuring internal implementation. zap is current implementation
Index ¶
- func Init(node *locators.Node, cfg *LogConfig)
- func InitNodeless(cfg *LogConfig)
- type LogConfig
- type LogLevel
- type Logger
- func (log *Logger) Debug(template string)
- func (log *Logger) Debugf(template string, args ...interface{})
- func (log *Logger) Error(template string)
- func (log *Logger) Errorf(template string, args ...interface{})
- func (log *Logger) Info(template string)
- func (log *Logger) Infof(template string, args ...interface{})
- func (log *Logger) Warn(template string)
- func (log *Logger) Warnf(template string, args ...interface{})
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
Init inits zap logger context from config and predeclared settings. Init also adds node ID to logger context
func InitNodeless ¶
func InitNodeless(cfg *LogConfig)
InitNodeless inits zap logger context from config and predeclared settings
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a struct that encapsulates logger implementation
Click to show internal directories.
Click to hide internal directories.