Documentation ¶
Index ¶
- type ApiLogger
- func (l *ApiLogger) DPanic(args ...interface{})
- func (l *ApiLogger) DPanicf(template string, args ...interface{})
- func (l *ApiLogger) Debug(args ...interface{})
- func (l *ApiLogger) Debugf(template string, args ...interface{})
- func (l *ApiLogger) Error(args ...interface{})
- func (l *ApiLogger) Errorf(template string, args ...interface{})
- func (l *ApiLogger) Fatal(args ...interface{})
- func (l *ApiLogger) Fatalf(template string, args ...interface{})
- func (l *ApiLogger) Info(args ...interface{})
- func (l *ApiLogger) Infof(template string, args ...interface{})
- func (l *ApiLogger) InitLogger()
- func (l *ApiLogger) Panic(args ...interface{})
- func (l *ApiLogger) Panicf(template string, args ...interface{})
- func (l *ApiLogger) Warn(args ...interface{})
- func (l *ApiLogger) Warnf(template string, args ...interface{})
- type Logger
- type WrappedWriteSyncer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiLogger ¶
type ApiLogger struct {
// contains filtered or unexported fields
}
func NewApiLogger ¶
func (*ApiLogger) InitLogger ¶
func (l *ApiLogger) InitLogger()
type Logger ¶
type Logger interface { InitLogger() Debug(args ...interface{}) Debugf(template string, args ...interface{}) Info(args ...interface{}) Infof(template string, args ...interface{}) Warn(args ...interface{}) Warnf(template string, args ...interface{}) Error(args ...interface{}) Errorf(template string, args ...interface{}) DPanic(args ...interface{}) DPanicf(template string, args ...interface{}) Fatal(args ...interface{}) Fatalf(template string, args ...interface{}) }
type WrappedWriteSyncer ¶
type WrappedWriteSyncer struct {
// contains filtered or unexported fields
}
WrappedWriteSyncer is a helper struct implementing zapcore.WriteSyncer to wrap a standard os.Stdout handle, giving control over the WriteSyncer's Sync() function. Sync() results in an error on Windows in combination with os.Stdout ("sync /dev/stdout: The handle is invalid."). WrappedWriteSyncer simply does nothing when Sync() is called by Zap.
func (WrappedWriteSyncer) Sync ¶
func (mws WrappedWriteSyncer) Sync() error
Click to show internal directories.
Click to hide internal directories.