Documentation
¶
Index ¶
- func Debug(v ...any)
- func DebugFields(msg string, fields map[string]any)
- func Debugf(s string, v ...any)
- func Error(v ...any)
- func ErrorEvent(eventType string, data string)
- func ErrorEventWithResources(eventType string, screenshot, text, data string)
- func ErrorFields(msg string, fields map[string]interface{})
- func ErrorFile(filePath string, data string)
- func ErrorStack(stack, s string, v ...any)
- func Errorf(s string, v ...any)
- func Fatal(v ...any)
- func Fatalf(s string, v ...any)
- func GetContext() context.Context
- func Info(v ...any)
- func InfoEvent(eventType string, data string)
- func InfoFields(msg string, fields map[string]interface{})
- func InfoFile(filePath string, data string)
- func Infof(s string, v ...any)
- func Init()
- func Warning(v ...any)
- func Warningf(s string, v ...any)
- type Logger
- type LoggerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugFields ¶ added in v1.0.3
DebugFields logs a debug level message with structured fields
func ErrorEvent ¶
func ErrorEventWithResources ¶
func ErrorFields ¶ added in v1.0.3
ErrorFields logs an error level message with structured fields
func ErrorStack ¶
func GetContext ¶
func InfoFields ¶ added in v1.0.3
InfoFields logs an info level message with structured fields
Types ¶
type LoggerInterface ¶
type LoggerInterface interface {
Debug(v ...any)
Debugf(s string, v ...any)
Info(v ...any)
Infof(s string, v ...any)
InfoEvent(eventType string, data string)
ErrorEvent(eventType string, data string)
ErrorEventWithResources(eventType string, screenshot, text, data string)
InfoFile(filePath string, data string)
ErrorFile(filePath string, data string)
Warning(v ...any)
Warningf(s string, v ...any)
Error(v ...any)
Errorf(s string, v ...any)
ErrorStack(stack, s string, v ...any)
DebugFields(msg string, fields map[string]any)
InfoFields(msg string, fields map[string]interface{})
ErrorFields(msg string, fields map[string]interface{})
Fatal(v ...any)
Fatalf(s string, v ...any)
GetContext() context.Context
}
func FromContext ¶
func FromContext(ctx context.Context) LoggerInterface
func New ¶
func New(ctx context.Context, ctxFields interface{}) LoggerInterface
Click to show internal directories.
Click to hide internal directories.