Documentation
¶
Index ¶
- func Debug(v ...any)
- func Debugf(s string, v ...any)
- func Error(v ...any)
- func ErrorEvent(eventType events.Event, data string)
- func ErrorEventWithResources(eventType events.Event, screenshot, text, data string)
- func ErrorFile(filePath string, data string)
- func ErrorStack(stack, s string, v ...any)
- func Errorf(s string, v ...any)
- func GetContext() context.Context
- func Info(v ...any)
- func InfoEvent(eventType events.Event, data string)
- func InfoFile(filePath string, data string)
- func Infof(s string, v ...any)
- func Init()
- func Warning(v ...any)
- type Logger
- type LoggerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorEvent ¶
func ErrorEventWithResources ¶
func ErrorStack ¶
func GetContext ¶
Types ¶
type Logger ¶
type Logger struct {
Db logstorage.ILogStore
}
type LoggerInterface ¶
type LoggerInterface interface {
Debug(v ...any)
Debugf(s string, v ...any)
Info(v ...any)
Infof(s string, v ...any)
InfoEvent(eventType events.Event, data string)
ErrorEvent(eventType events.Event, data string)
ErrorEventWithResources(eventType events.Event, screenshot, text, data string)
InfoFile(filePath string, data string)
ErrorFile(filePath string, data string)
Warning(v ...any)
Error(v ...any)
Errorf(s string, v ...any)
ErrorStack(stack, 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.