Documentation ¶
Index ¶
- Constants
- func NewWriter(instance *logrus.Entry) log.Writer
- type Application
- type Entry
- type Hook
- type ServiceProvider
- type Writer
- func (r *Writer) Code(code string) log.Writer
- func (r *Writer) Debug(args ...any)
- func (r *Writer) Debugf(format string, args ...any)
- func (r *Writer) Error(args ...any)
- func (r *Writer) Errorf(format string, args ...any)
- func (r *Writer) Fatal(args ...any)
- func (r *Writer) Fatalf(format string, args ...any)
- func (r *Writer) Hint(hint string) log.Writer
- func (r *Writer) In(domain string) log.Writer
- func (r *Writer) Info(args ...any)
- func (r *Writer) Infof(format string, args ...any)
- func (r *Writer) Owner(owner any) log.Writer
- func (r *Writer) Panic(args ...any)
- func (r *Writer) Panicf(format string, args ...any)
- func (r *Writer) Request(req http.ContextRequest) log.Writer
- func (r *Writer) Response(res http.ContextResponse) log.Writer
- func (r *Writer) Tags(tags ...string) log.Writer
- func (r *Writer) User(user any) log.Writer
- func (r *Writer) Warning(args ...any)
- func (r *Writer) Warningf(format string, args ...any)
- func (r *Writer) With(data map[string]any) log.Writer
Constants ¶
View Source
const Binding = "goravel.log"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
func NewApplication ¶ added in v1.8.1
func NewApplication(config config.Config) *Application
func (*Application) WithContext ¶ added in v1.12.0
func (r *Application) WithContext(ctx context.Context) log.Writer
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (log *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (log *ServiceProvider) Register(app foundation.Application)
type Writer ¶ added in v1.2.3
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) Code ¶ added in v1.13.1
Code set a code or slug that describes the error. Error messages are intended to be read by humans, but such code is expected to be read by machines and even transported over different services.
func (*Writer) In ¶ added in v1.13.1
In sets the feature category or domain in which the log entry is relevant.
func (*Writer) Owner ¶ added in v1.13.1
Owner set the name/email of the colleague/team responsible for handling this error. Useful for alerting purpose.
func (*Writer) Request ¶ added in v1.13.1
func (r *Writer) Request(req http.ContextRequest) log.Writer
Request supplies a http.Request.
func (*Writer) Response ¶ added in v1.13.1
func (r *Writer) Response(res http.ContextResponse) log.Writer
Response supplies a http.Response.
func (*Writer) Tags ¶ added in v1.13.1
Tags add multiple tags, describing the feature returning an error.
Click to show internal directories.
Click to hide internal directories.