Documentation
¶
Index ¶
- Variables
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func HandlePanic()
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func IsDebugEnabled() bool
- func SetDefault(logger *Logger)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type LogEntry
- type LogLevel
- type LogStore
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) GetWriter() io.Writer
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) IsDebugEnabled() bool
- func (l *Logger) SetDebug(enable bool)
- func (l *Logger) SetWriter(w io.Writer)
- func (l *Logger) Store() *LogStore
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- func (l *Logger) Write(p []byte) (n int, err error)
- type PanicPayload
Constants ¶
This section is empty.
Variables ¶
View Source
var PanicChannel chan PanicPayload
Functions ¶
func Debugf ¶
func Debugf(format string, v ...interface{})
Debugf logs a formatted debug message using the default logger.
func Errorf ¶
func Errorf(format string, v ...interface{})
Errorf logs a formatted error message using the default logger.
func HandlePanic ¶ added in v1.1.0
func HandlePanic()
func Info ¶
func Info(v ...interface{})
Info logs an informational message using the default logger.
func Infof ¶
func Infof(format string, v ...interface{})
Infof logs a formatted informational message using the default logger.
func IsDebugEnabled ¶
func IsDebugEnabled() bool
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel defines the severity of a log entry.
Enum for log levels. The order is important for filtering.
type LogStore ¶
type LogStore struct {
// contains filtered or unexported fields
}
LogStore holds all log entries in memory for the UI. It is thread-safe.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a central logger that writes to a store and an optional io.Writer.
func (*Logger) IsDebugEnabled ¶
type PanicPayload ¶ added in v1.1.0
type PanicPayload struct {
Value interface{}
Stack []byte
}
Click to show internal directories.
Click to hide internal directories.