Documentation ¶
Index ¶
- Variables
- type DynamicLogger
- func (d *DynamicLogger) Debugf(f string, args ...interface{})
- func (d *DynamicLogger) Errorf(f string, args ...interface{})
- func (d *DynamicLogger) Fork(prefix string, args ...interface{}) (dl *DynamicLogger)
- func (d *DynamicLogger) GetLogger() (l *Logger)
- func (d *DynamicLogger) Infof(f string, args ...interface{})
- func (d *DynamicLogger) Logf(severity LogLevel, f string, args ...interface{})
- func (d *DynamicLogger) NDebugf(name string, f string, args ...interface{})
- func (d *DynamicLogger) NErrorf(name string, f string, args ...interface{})
- func (d *DynamicLogger) NInfof(name string, f string, args ...interface{})
- func (d *DynamicLogger) NLogf(name string, severity LogLevel, f string, args ...interface{})
- type ILogger
- type LogControl
- type LogController
- type LogLevel
- type LogOutput
- type Logger
- func (l *Logger) Debugf(f string, args ...interface{})
- func (l *Logger) Errorf(f string, args ...interface{})
- func (l *Logger) Fork(prefix string, args ...interface{}) *Logger
- func (l *Logger) Infof(f string, args ...interface{})
- func (l *Logger) Logf(severity LogLevel, f string, args ...interface{})
- func (l *Logger) Prefix() string
- type MemLogger
- func (ml *MemLogger) Debug(msg string)
- func (ml *MemLogger) Debugf(msg string, args ...interface{})
- func (ml *MemLogger) Error(msg string)
- func (ml *MemLogger) Errorf(msg string, args ...interface{})
- func (ml *MemLogger) Flush(l *Logger)
- func (ml *MemLogger) Info(msg string)
- func (ml *MemLogger) Infof(msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultActiveDynamicLogs = true
Functions ¶
This section is empty.
Types ¶
type DynamicLogger ¶
type DynamicLogger struct { *Logger *LogController }
func ForkToDynamicLogger ¶
func ForkToDynamicLogger(l *Logger, prefix string, enabled bool, defaultActive bool) (dl *DynamicLogger)
func NewDynamicLogger ¶
func (*DynamicLogger) Debugf ¶
func (d *DynamicLogger) Debugf(f string, args ...interface{})
func (*DynamicLogger) Errorf ¶
func (d *DynamicLogger) Errorf(f string, args ...interface{})
func (*DynamicLogger) Fork ¶
func (d *DynamicLogger) Fork(prefix string, args ...interface{}) (dl *DynamicLogger)
func (*DynamicLogger) GetLogger ¶
func (d *DynamicLogger) GetLogger() (l *Logger)
func (*DynamicLogger) Infof ¶
func (d *DynamicLogger) Infof(f string, args ...interface{})
func (*DynamicLogger) Logf ¶
func (d *DynamicLogger) Logf(severity LogLevel, f string, args ...interface{})
func (*DynamicLogger) NDebugf ¶
func (d *DynamicLogger) NDebugf(name string, f string, args ...interface{})
func (*DynamicLogger) NErrorf ¶
func (d *DynamicLogger) NErrorf(name string, f string, args ...interface{})
func (*DynamicLogger) NInfof ¶
func (d *DynamicLogger) NInfof(name string, f string, args ...interface{})
type LogControl ¶
type LogController ¶
type LogController struct {
// contains filtered or unexported fields
}
func (*LogController) Clone ¶
func (lc *LogController) Clone() (clonedLC *LogController)
func (*LogController) DefaultActive ¶
func (lc *LogController) DefaultActive() (defaultActive bool)
func (*LogController) IsActive ¶
func (lc *LogController) IsActive(name string) (active bool)
func (*LogController) SetControl ¶
func (lc *LogController) SetControl(name string, active bool)
type LogOutput ¶
func NewLogOutput ¶
type MemLogger ¶
type MemLogger struct {
// contains filtered or unexported fields
}
func NewMemLogger ¶
func NewMemLogger() MemLogger
NewMemLogger creates a logger that stores messages in memory used for early logging while the "real" file-based logger is not loaded yet.
Click to show internal directories.
Click to hide internal directories.