Documentation
¶
Index ¶
- func Initialize(loggerInstance ILogger)
- type Fields
- type ILogger
- type Level
- type NoOpLogger
- func (n NoOpLogger) Debug(ctx context.Context, msg string, fields Fields)
- func (n NoOpLogger) Error(ctx context.Context, msg string, err error, fields Fields)
- func (n NoOpLogger) Info(ctx context.Context, msg string, fields Fields)
- func (n NoOpLogger) Warn(ctx context.Context, msg string, fields Fields)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(loggerInstance ILogger)
Types ¶
type ILogger ¶
type ILogger interface {
Info(ctx context.Context, msg string, fields Fields)
Warn(ctx context.Context, msg string, fields Fields)
Error(ctx context.Context, msg string, err error, fields Fields)
Debug(ctx context.Context, msg string, fields Fields)
}
var ( // Assigning default no-op logger. Later it will be replaced by actual logger(if provided) inside init function. Logger ILogger = newNoOpLogger() )
Click to show internal directories.
Click to hide internal directories.