Documentation ¶
Index ¶
- func DPanic(msg string, fields ...zap.Field)
- func DPanicFormat(format string, args ...interface{})
- func Debug(msg string, fields ...zap.Field)
- func DebugFormat(format string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func ErrorFormat(format string, args ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func FatalFormat(format string, args ...interface{})
- func Flush()
- func GetDate(fileName string) string
- func Info(msg string, fields ...zap.Field)
- func InfoFormat(format string, args ...interface{})
- func Panic(msg string, fields ...zap.Field)
- func PanicFormat(format string, args ...interface{})
- func SetDefaultLogger(l *Logger)
- func Warn(msg string, fields ...zap.Field)
- func WarnFormat(format string, args ...interface{})
- type Logger
- func (this_ *Logger) DPanic(msg string, fields ...zap.Field)
- func (this_ *Logger) DPanicFormat(format string, args ...interface{})
- func (this_ *Logger) Debug(msg string, fields ...zap.Field)
- func (this_ *Logger) DebugFormat(format string, args ...interface{})
- func (this_ *Logger) Error(msg string, fields ...zap.Field)
- func (this_ *Logger) ErrorFormat(format string, args ...interface{})
- func (this_ *Logger) Fatal(msg string, fields ...zap.Field)
- func (this_ *Logger) FatalFormat(format string, args ...interface{})
- func (this_ *Logger) Flush()
- func (this_ *Logger) Info(msg string, fields ...zap.Field)
- func (this_ *Logger) InfoFormat(format string, args ...interface{})
- func (this_ *Logger) Panic(msg string, fields ...zap.Field)
- func (this_ *Logger) PanicFormat(format string, args ...interface{})
- func (this_ *Logger) Warn(msg string, fields ...zap.Field)
- func (this_ *Logger) WarnFormat(format string, args ...interface{})
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DPanicFormat ¶
func DPanicFormat(format string, args ...interface{})
func DebugFormat ¶
func DebugFormat(format string, args ...interface{})
func ErrorFormat ¶
func ErrorFormat(format string, args ...interface{})
func FatalFormat ¶
func FatalFormat(format string, args ...interface{})
func InfoFormat ¶
func InfoFormat(format string, args ...interface{})
func PanicFormat ¶
func PanicFormat(format string, args ...interface{})
func SetDefaultLogger ¶
func SetDefaultLogger(l *Logger)
func WarnFormat ¶
func WarnFormat(format string, args ...interface{})
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func GetDefaultLogger ¶
func GetDefaultLogger() *Logger
func InitDefaultLogger ¶
func (*Logger) DPanicFormat ¶
func (*Logger) DebugFormat ¶
func (*Logger) ErrorFormat ¶
func (*Logger) FatalFormat ¶
func (*Logger) InfoFormat ¶
func (*Logger) PanicFormat ¶
func (*Logger) WarnFormat ¶
type Option ¶
type Option func(o *Options)
func WithExpired ¶
func WithStderr ¶
func WithStderr() Option
func WithStdout ¶
func WithStdout() Option
Click to show internal directories.
Click to hide internal directories.