Documentation
¶
Index ¶
- func Wrap(zap *zap.Logger) hclog.Logger
- type Level
- type Wrapper
- func (w Wrapper) Debug(msg string, args ...interface{})
- func (w Wrapper) Error(msg string, args ...interface{})
- func (w Wrapper) GetLevel() hclog.Level
- func (w Wrapper) ImpliedArgs() []interface{}
- func (w Wrapper) Info(msg string, args ...interface{})
- func (w Wrapper) IsDebug() bool
- func (w Wrapper) IsError() bool
- func (w Wrapper) IsInfo() bool
- func (w Wrapper) IsTrace() bool
- func (w Wrapper) IsWarn() bool
- func (w Wrapper) Log(lvl Level, msg string, args ...interface{})
- func (w Wrapper) Name() string
- func (w Wrapper) Named(name string) hclog.Logger
- func (w Wrapper) ResetNamed(name string) hclog.Logger
- func (w Wrapper) SetLevel(lvl Level)
- func (w Wrapper) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (w Wrapper) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (w Wrapper) Trace(msg string, args ...interface{})
- func (w Wrapper) Warn(msg string, args ...interface{})
- func (w Wrapper) With(args ...interface{}) hclog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Wrapper ¶
Wrapper holds *zap.Logger and adapts its methods to declared by hclog.Logger.
func (Wrapper) ImpliedArgs ¶
func (w Wrapper) ImpliedArgs() []interface{}
ImpliedArgs has no implementation.
func (Wrapper) Log ¶
Log logs messages with four simplified levels - Debug,Warn,Error and Info as a default.
func (Wrapper) Named ¶
Named returns a logger with the specific nams. The name string will always be presented in a log messages.
func (Wrapper) ResetNamed ¶
ResetNamed has the same implementation as Named.
func (Wrapper) StandardLogger ¶
func (w Wrapper) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
StandardLogger returns standard logger with os.Stderr as a writer.
func (Wrapper) StandardWriter ¶
func (w Wrapper) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
StandardWriter returns os.Stderr as io.Writer.
Click to show internal directories.
Click to hide internal directories.