Documentation ¶
Overview ¶
Package basiclogger provides a basic logger implementing est.Logger, for demonstration and testing purposes.
Index ¶
- func New(w io.Writer) est.Logger
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Debugw(msg string, keysAndValues ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Errorw(msg string, keysAndValues ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Infow(msg string, keysAndValues ...interface{})
- func (l *Logger) With(args ...interface{}) est.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a basic logger implementing est.Logger.
func (*Logger) Debug ¶
func (l *Logger) Debug(v ...interface{})
Debug uses fmt.Sprint to construct and log a message.
func (*Logger) Debugw ¶
Debugw logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
func (*Logger) Error ¶
func (l *Logger) Error(v ...interface{})
Error uses fmt.Sprint to construct and log a message.
func (*Logger) Errorw ¶
Errorw logs a message with some additional context. The variadic key-value pairs are treated as they are in With.
func (*Logger) Info ¶
func (l *Logger) Info(v ...interface{})
Info uses fmt.Sprint to construct and log a message.
Click to show internal directories.
Click to hide internal directories.