MCPcopy
hub / github.com/rs/zerolog / Error

Function Error

log/log.go:80–82  ·  view source on GitHub ↗

Error starts a new message with error level. You must call Msg on the returned event in order to send the event.

()

Source from the content-addressed store, hash-verified

78//
79// You must call Msg on the returned event in order to send the event.
80func Error() *zerolog.Event {
81 return Logger.Error()
82}
83
84// Fatal starts a new message with fatal level. The os.Exit(1) function
85// is called by the Msg method.

Callers 1

ExampleErrorFunction · 0.92

Calls 1

ErrorMethod · 0.45

Tested by 1

ExampleErrorFunction · 0.74