Documentation ¶
Index ¶
- func ZapWrap(zap *zap.Logger) hclog.Logger
- type Level
- type PluginConfig
- type ZapWrapper
- func (w ZapWrapper) Debug(msg string, args ...interface{})
- func (w ZapWrapper) Error(msg string, args ...interface{})
- func (w ZapWrapper) GetLevel() hclog.Level
- func (w ZapWrapper) ImpliedArgs() []interface{}
- func (w ZapWrapper) Info(msg string, args ...interface{})
- func (w ZapWrapper) IsDebug() bool
- func (w ZapWrapper) IsError() bool
- func (w ZapWrapper) IsInfo() bool
- func (w ZapWrapper) IsTrace() bool
- func (w ZapWrapper) IsWarn() bool
- func (w ZapWrapper) Log(lvl Level, msg string, args ...interface{})
- func (w ZapWrapper) Name() string
- func (w ZapWrapper) Named(name string) hclog.Logger
- func (w ZapWrapper) ResetNamed(name string) hclog.Logger
- func (w ZapWrapper) SetLevel(lvl Level)
- func (w ZapWrapper) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (w ZapWrapper) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (w ZapWrapper) Trace(msg string, args ...interface{})
- func (w ZapWrapper) Warn(msg string, args ...interface{})
- func (w ZapWrapper) With(args ...interface{}) hclog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginConfig ¶ added in v5.3.5
func LoadPluginConfig ¶ added in v5.3.5
func LoadPluginConfig() ([]PluginConfig, error)
LoadPluginConfig Loads the plugin list from the TOML config file
type ZapWrapper ¶
ZapWrapper holds *zap.Logger and adapts its methods to declared by hclog.Logger.
func (ZapWrapper) Debug ¶
func (w ZapWrapper) Debug(msg string, args ...interface{})
func (ZapWrapper) Error ¶
func (w ZapWrapper) Error(msg string, args ...interface{})
func (ZapWrapper) GetLevel ¶ added in v5.4.2
func (w ZapWrapper) GetLevel() hclog.Level
func (ZapWrapper) ImpliedArgs ¶
func (w ZapWrapper) ImpliedArgs() []interface{}
ImpliedArgs has no implementation.
func (ZapWrapper) Info ¶
func (w ZapWrapper) Info(msg string, args ...interface{})
func (ZapWrapper) Log ¶
func (w ZapWrapper) Log(lvl Level, msg string, args ...interface{})
Log logs messages with four simplified levels - Debug,Warn,Error and Info as a default.
func (ZapWrapper) Name ¶
func (w ZapWrapper) Name() string
Name returns a logger's name (if presented).
func (ZapWrapper) Named ¶
func (w ZapWrapper) Named(name string) hclog.Logger
Named returns a logger with the specific nams. The name string will always be presented in a log messages.
func (ZapWrapper) ResetNamed ¶
func (w ZapWrapper) ResetNamed(name string) hclog.Logger
ResetNamed has the same implementation as Named.
func (ZapWrapper) SetLevel ¶
func (w ZapWrapper) SetLevel(lvl Level)
SetLevel has no implementation.
func (ZapWrapper) StandardLogger ¶
func (w ZapWrapper) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
StandardLogger returns standard logger with os.Stderr as a writer.
func (ZapWrapper) StandardWriter ¶
func (w ZapWrapper) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
StandardWriter returns os.Stderr as io.Writer.
func (ZapWrapper) Trace ¶
func (w ZapWrapper) Trace(msg string, args ...interface{})
Trace will log an info-level message in Zap.
func (ZapWrapper) Warn ¶
func (w ZapWrapper) Warn(msg string, args ...interface{})
func (ZapWrapper) With ¶
func (w ZapWrapper) With(args ...interface{}) hclog.Logger
With returns a logger with always-presented key-value pairs.