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
- func (r *Writer) WithTrace() log.Writer
Constants ¶
View Source
const Binding = "goravel.log"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
func NewApplication ¶
func NewApplication(config config.Config, json foundation.Json) *Application
func (*Application) WithContext ¶
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 ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) Code ¶
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) Owner ¶
Owner set the name/email of the colleague/team responsible for handling this error. Useful for alerting purpose.
func (*Writer) Request ¶
func (r *Writer) Request(req http.ContextRequest) log.Writer
Request supplies a http.Request.
func (*Writer) Response ¶
func (r *Writer) Response(res http.ContextResponse) log.Writer
Response supplies a http.Response.
Click to show internal directories.
Click to hide internal directories.