Documentation
¶
Index ¶
- type LoggerInterface
- type ZLogger
- func (l *ZLogger) DebugLog(ctx context.Context, msg string, additional interface{})
- func (l *ZLogger) ErrorLog(ctx context.Context, err error, msg string, additional interface{})
- func (l *ZLogger) FatalLog(ctx context.Context, msg string, additional interface{})
- func (l *ZLogger) InfoLog(ctx context.Context, msg string, additional interface{})
- func (l *ZLogger) WarningLog(ctx context.Context, msg string, additional interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerInterface ¶
type LoggerInterface interface { ErrorLog(ctx context.Context, err error, msg string, additional any) WarningLog(ctx context.Context, msg string, additional any) InfoLog(ctx context.Context, msg string, additional any) DebugLog(ctx context.Context, msg string, additional any) FatalLog(ctx context.Context, msg string, additional any) }
type ZLogger ¶
type ZLogger struct {
// contains filtered or unexported fields
}
ZLogger is an implementation of LoggerInterface
func NewZLogger ¶
NewZLogger creates a new instance of MyLogger with the specified output option
Click to show internal directories.
Click to hide internal directories.