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

Method Warn

log.go:362–364  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

360//
361// You must call Msg on the returned event in order to send the event.
362func (l *Logger) Warn() *Event {
363 return l.newEvent(WarnLevel, nil)
364}
365
366// Error starts a new message with error level.
367//

Callers 10

WithLevelMethod · 0.95
ExampleLogger_WarnFunction · 0.80
TestLevelWriterFunction · 0.80
ExampleLogger_WarnFunction · 0.80
TestSlogHandler_WarnFunction · 0.80
TestMultiSyslogWriterFunction · 0.80
TestSyslogWriterFunction · 0.80
WarnFunction · 0.80
TestWriteWithAllLevelsFunction · 0.80

Calls 1

newEventMethod · 0.95

Tested by 8

ExampleLogger_WarnFunction · 0.64
TestLevelWriterFunction · 0.64
ExampleLogger_WarnFunction · 0.64
TestSlogHandler_WarnFunction · 0.64
TestMultiSyslogWriterFunction · 0.64
TestSyslogWriterFunction · 0.64
TestWriteWithAllLevelsFunction · 0.64