Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStdLogger ¶
NewStdLogger create a Logger that uses out and err for informational and error messages.
Types ¶
type StdLogger ¶
type StdLogger struct {
// contains filtered or unexported fields
}
StdLogger is the standard logger that distinguishes between info and error logs.
type StructuredLogger ¶
type StructuredLogger struct {
// contains filtered or unexported fields
}
StructuredLogger writes log messages in JSON.
func (*StructuredLogger) Debugf ¶
func (l *StructuredLogger) Debugf(format string, v ...interface{})
Debugf logs debug messages
func (*StructuredLogger) Errorf ¶
func (l *StructuredLogger) Errorf(format string, v ...interface{})
Errorf logs error messages
func (*StructuredLogger) Infof ¶
func (l *StructuredLogger) Infof(format string, v ...interface{})
Infof logs informational messages
Click to show internal directories.
Click to hide internal directories.