Documentation ¶
Index ¶
- Constants
- type ZapLogger
- func (zl *ZapLogger) Ctx(ctx context.Context) helpers.ILogger
- func (zl *ZapLogger) Debug(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) Error(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) Fatal(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) GetLevel() string
- func (zl *ZapLogger) GetWriter() *os.File
- func (zl *ZapLogger) Info(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) LoggerName() string
- func (zl *ZapLogger) SetLevel(level string) error
- func (zl *ZapLogger) SetWriter(w *os.File)
- func (zl *ZapLogger) Start(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) StopError(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) StopSuccess(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) Success(msg string, details ...helpers.IDetails)
- func (zl *ZapLogger) Warning(msg string, details ...helpers.IDetails)
- type ZapLoggerWithCtx
- func (zl *ZapLoggerWithCtx) Ctx(_ context.Context) helpers.ILogger
- func (zl *ZapLoggerWithCtx) Debug(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) Error(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) Fatal(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) GetLevel() string
- func (zl *ZapLoggerWithCtx) GetWriter() *os.File
- func (zl *ZapLoggerWithCtx) Info(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) LoggerName() string
- func (zl *ZapLoggerWithCtx) SetLevel(level string) error
- func (zl *ZapLoggerWithCtx) SetWriter(w *os.File)
- func (zl *ZapLoggerWithCtx) Start(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) StopError(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) StopSuccess(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) Success(msg string, details ...helpers.IDetails)
- func (zl *ZapLoggerWithCtx) Warning(msg string, details ...helpers.IDetails)
Constants ¶
View Source
const LoggerName string = "zap"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZapLogger ¶
type ZapLogger struct {
// contains filtered or unexported fields
}
func NewZapLogger ¶
func NewZapLogger() *ZapLogger
func (*ZapLogger) LoggerName ¶
func (*ZapLogger) StopSuccess ¶ added in v0.0.16
type ZapLoggerWithCtx ¶ added in v0.0.7
type ZapLoggerWithCtx struct {
// contains filtered or unexported fields
}
func (*ZapLoggerWithCtx) Ctx ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) Ctx(_ context.Context) helpers.ILogger
func (*ZapLoggerWithCtx) Debug ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) Debug(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) Error ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) Error(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) Fatal ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) Fatal(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) GetLevel ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) GetLevel() string
func (*ZapLoggerWithCtx) GetWriter ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) GetWriter() *os.File
func (*ZapLoggerWithCtx) Info ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) Info(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) LoggerName ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) LoggerName() string
func (*ZapLoggerWithCtx) SetLevel ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) SetLevel(level string) error
func (*ZapLoggerWithCtx) SetWriter ¶ added in v0.0.7
func (zl *ZapLoggerWithCtx) SetWriter(w *os.File)
func (*ZapLoggerWithCtx) Start ¶ added in v0.0.16
func (zl *ZapLoggerWithCtx) Start(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) StopError ¶ added in v0.0.16
func (zl *ZapLoggerWithCtx) StopError(msg string, details ...helpers.IDetails)
func (*ZapLoggerWithCtx) StopSuccess ¶ added in v0.0.16
func (zl *ZapLoggerWithCtx) StopSuccess(msg string, details ...helpers.IDetails)
Click to show internal directories.
Click to hide internal directories.