Documentation ¶
Overview ¶
FMT Logger - a very simplistic implementation for logger - everything is printed through fmt - stores history with sensitive data scrubbing
Index ¶
- type FmtLogger
- func (l FmtLogger) Debug(args ...interface{})
- func (l FmtLogger) Debugf(fmtString string, args ...interface{})
- func (l FmtLogger) Error(args ...interface{})
- func (l FmtLogger) Errorf(fmtString string, args ...interface{})
- func (l FmtLogger) History() []string
- func (l FmtLogger) Info(args ...interface{})
- func (l FmtLogger) Infof(fmtString string, args ...interface{})
- func (l FmtLogger) SetDebug(enable bool)
- func (l FmtLogger) SetErrWriter(err io.Writer)
- func (l FmtLogger) SetOutWriter(out io.Writer)
- func (l FmtLogger) Warn(args ...interface{})
- func (l FmtLogger) Warnf(fmtString string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FmtLogger ¶
type FmtLogger struct {
// contains filtered or unexported fields
}
func (FmtLogger) SetErrWriter ¶
func (FmtLogger) SetOutWriter ¶
type Logger ¶
type Logger interface { SetDebug(debug bool) SetOutWriter(io.Writer) SetErrWriter(io.Writer) Debug(args ...interface{}) Debugf(fmtString string, args ...interface{}) Error(args ...interface{}) Errorf(fmtString string, args ...interface{}) Info(args ...interface{}) Infof(fmtString string, args ...interface{}) Warn(args ...interface{}) Warnf(fmtString string, args ...interface{}) History() []string }
Click to show internal directories.
Click to hide internal directories.