Documentation ¶
Index ¶
- func DPanicf(template string, args ...interface{})
- func Debugf(template string, args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Infof(template string, args ...interface{})
- func Panicf(template string, args ...interface{})
- func SetLogger(l Logger)
- func Warnf(template string, args ...interface{})
- type DefaultLogger
- func (s *DefaultLogger) DPanicf(template string, args ...interface{})
- func (s *DefaultLogger) Debugf(template string, args ...interface{})
- func (s *DefaultLogger) Errorf(template string, args ...interface{})
- func (s *DefaultLogger) Fatalf(template string, args ...interface{})
- func (s *DefaultLogger) Infof(template string, args ...interface{})
- func (s *DefaultLogger) Panicf(template string, args ...interface{})
- func (s *DefaultLogger) Warnf(template string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DPanicf ¶
func DPanicf(template string, args ...interface{})
DPanicf uses fmt.Sprintf to log a templated message. In development, the log then panics. (See DPanicLevel for details.)
func Errorf ¶
func Errorf(template string, args ...interface{})
Errorf uses fmt.Sprintf to log a templated message.
func Fatalf ¶
func Fatalf(template string, args ...interface{})
Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
*zap.SugaredLogger
}
DefaultLogger write log by zap log
func (*DefaultLogger) DPanicf ¶
func (s *DefaultLogger) DPanicf(template string, args ...interface{})
func (*DefaultLogger) Debugf ¶
func (s *DefaultLogger) Debugf(template string, args ...interface{})
func (*DefaultLogger) Errorf ¶
func (s *DefaultLogger) Errorf(template string, args ...interface{})
func (*DefaultLogger) Fatalf ¶
func (s *DefaultLogger) Fatalf(template string, args ...interface{})
func (*DefaultLogger) Infof ¶
func (s *DefaultLogger) Infof(template string, args ...interface{})
func (*DefaultLogger) Panicf ¶
func (s *DefaultLogger) Panicf(template string, args ...interface{})
func (*DefaultLogger) Warnf ¶
func (s *DefaultLogger) Warnf(template string, args ...interface{})
type Logger ¶
type Logger interface { // Debugf uses fmt.Sprintf to log a templated message. // DebugLevel logs are typically voluminous, and are usually disabled in // production. Debugf(template string, args ...interface{}) // Infof uses fmt.Sprintf to log a templated message. // InfoLevel is the default logging priority. Infof(template string, args ...interface{}) // Warnf uses fmt.Sprintf to log a templated message. // WarnLevel logs are more important than Info, but don't need individual // human review. Warnf(template string, args ...interface{}) // Errorf uses fmt.Sprintf to log a templated message. // ErrorLevel logs are high-priority. If an application is running smoothly, // it shouldn't generate any error-level logs. Errorf(template string, args ...interface{}) // DPanicf uses fmt.Sprintf to log a templated message. In development, the // DPanicLevel logs are particularly important errors. In development the // log panics after writing the message. DPanicf(template string, args ...interface{}) // Panicf uses fmt.Sprintf to log a templated message, then panics. Panicf(template string, args ...interface{}) // Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit. Fatalf(template string, args ...interface{}) }
Logger define the log api for eventmesh
Click to show internal directories.
Click to hide internal directories.