Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the logger from the context or the default logger
Types ¶
type LoggedError ¶
type LoggedError struct {
// contains filtered or unexported fields
}
LoggedError is an error that has been logged
func Error ¶
func Error(logger *slog.Logger, err error) *LoggedError
Error logs an error and returns a LoggedError that wraps the error to indicate that the error has been logged
func (*LoggedError) Error ¶
func (e *LoggedError) Error() string
Click to show internal directories.
Click to hide internal directories.