Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Debug(msg string, args ...interface{})
- func (l *Logger) Error(msg string, args ...interface{})
- func (l *Logger) GetLevel() hclog.Level
- func (l *Logger) ImpliedArgs() []interface{}
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) IsDebug() bool
- func (l *Logger) IsError() bool
- func (l *Logger) IsInfo() bool
- func (l *Logger) IsTrace() bool
- func (l *Logger) IsWarn() bool
- func (l *Logger) Log(level hclog.Level, msg string, args ...interface{})
- func (l *Logger) Name() string
- func (l *Logger) Named(name string) hclog.Logger
- func (l *Logger) ResetNamed(name string) hclog.Logger
- func (l *Logger) SetLevel(level hclog.Level)
- func (l *Logger) StandardLogger(opts *hclog.StandardLoggerOptions) *log.Logger
- func (l *Logger) StandardWriter(opts *hclog.StandardLoggerOptions) io.Writer
- func (l *Logger) Trace(msg string, args ...interface{})
- func (l *Logger) Warn(msg string, args ...interface{})
- func (l *Logger) With(args ...interface{}) hclog.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a zerolog logger that fullfils the `go-hclog` Logger interface.
func (*Logger) GetLevel ¶
func (l *Logger) GetLevel() hclog.Level
GetLevel returns the current log level for the logger.
func (*Logger) ImpliedArgs ¶
func (l *Logger) ImpliedArgs() []interface{}
ImpliedArgs return key/value pairs associated with the current logger. Not supported at the moment.
func (*Logger) ResetNamed ¶
Named returns a named logger.
func (*Logger) SetLevel ¶
func (l *Logger) SetLevel(level hclog.Level)
SetLevel sets the log level for the logger.
func (*Logger) StandardLogger ¶
StandardLogger returns a value that conforms to the stdlib log.Logger interface
func (*Logger) StandardWriter ¶
StandardWriter return a value that conforms to io.Writer, which can be passed into log.SetOutput().
Click to show internal directories.
Click to hide internal directories.