Documentation
¶
Overview ¶
Package types contains log utils for fractal project.
Package types contains log utils for fractal project.
Index ¶
- func Crit(msg string, ctx ...interface{})
- func Debug(msg string, ctx ...interface{})
- func Error(msg string, ctx ...interface{})
- func Info(msg string, ctx ...interface{})
- func SetDefaultLogger(logger Logger)
- func Warn(msg string, ctx ...interface{})
- type Lazy
- type Log15Logger
- func (logger *Log15Logger) Crit(msg string, ctx ...interface{})
- func (logger *Log15Logger) Debug(msg string, ctx ...interface{})
- func (logger *Log15Logger) Error(msg string, ctx ...interface{})
- func (logger *Log15Logger) Info(msg string, ctx ...interface{})
- func (logger *Log15Logger) NewSubLogger(ctx ...interface{}) Logger
- func (logger *Log15Logger) Warn(msg string, ctx ...interface{})
- type Logger
- type Lvl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogger ¶
func SetDefaultLogger(logger Logger)
Types ¶
type Log15Logger ¶
type Log15Logger struct {
// contains filtered or unexported fields
}
func (*Log15Logger) Crit ¶
func (logger *Log15Logger) Crit(msg string, ctx ...interface{})
func (*Log15Logger) Debug ¶
func (logger *Log15Logger) Debug(msg string, ctx ...interface{})
func (*Log15Logger) Error ¶
func (logger *Log15Logger) Error(msg string, ctx ...interface{})
func (*Log15Logger) Info ¶
func (logger *Log15Logger) Info(msg string, ctx ...interface{})
func (*Log15Logger) NewSubLogger ¶
func (logger *Log15Logger) NewSubLogger(ctx ...interface{}) Logger
func (*Log15Logger) Warn ¶
func (logger *Log15Logger) Warn(msg string, ctx ...interface{})
type Logger ¶
type Logger interface { // Debug Log Debug(msg string, ctx ...interface{}) // Info Log Info(msg string, ctx ...interface{}) // Warn Log Warn(msg string, ctx ...interface{}) // Error Log Error(msg string, ctx ...interface{}) // Crit Log Crit(msg string, ctx ...interface{}) // Sub Logger NewSubLogger(ctx ...interface{}) Logger }
func InitMultipleLog15Logger ¶
func NewSubLogger ¶
func NewSubLogger(ctx ...interface{}) Logger
Click to show internal directories.
Click to hide internal directories.