Documentation
¶
Index ¶
- func Init() logger.Logger
- type LogrusProvider
- func (l *LogrusProvider) DPanic(msg string, fields map[string]any)
- func (l *LogrusProvider) Debug(msg string, fields map[string]any)
- func (l *LogrusProvider) Error(msg string, fields map[string]any)
- func (l *LogrusProvider) Fatal(msg string, fields map[string]any)
- func (l *LogrusProvider) Info(msg string, fields map[string]any)
- func (l *LogrusProvider) Panic(msg string, fields map[string]any)
- func (l *LogrusProvider) Sync() error
- func (l *LogrusProvider) Warn(msg string, fields map[string]any)
- func (l *LogrusProvider) WithContext(fields map[string]any) *LogrusProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogrusProvider ¶
LogrusProvider is a concrete implementation of the Logger interface using logrus.Logger.
func New ¶
func New(mode string) (*LogrusProvider, error)
NewLogrusProvider initializes a new logrus-based Logger.
func (*LogrusProvider) Debug ¶
func (l *LogrusProvider) Debug(msg string, fields map[string]any)
Implementing the Logger interface methods for LogrusProvider.
func (*LogrusProvider) Sync ¶
func (l *LogrusProvider) Sync() error
func (*LogrusProvider) WithContext ¶
func (l *LogrusProvider) WithContext(fields map[string]any) *LogrusProvider
WithContext creates a new LogrusProvider with contextual fields.
Click to show internal directories.
Click to hide internal directories.