MCPcopy Index your code
hub / github.com/aws/aws-node-termination-handler / WriteLevel

Method WriteLevel

pkg/logging/routing.go:31–36  ·  view source on GitHub ↗

WriteLevel if *l* is warning or higher then *b* is written to the error location, otherwise it is written to the default location.

(l zerolog.Level, b []byte)

Source from the content-addressed store, hash-verified

29// WriteLevel if *l* is warning or higher then *b* is written to the error
30// location, otherwise it is written to the default location.
31func (r RoutingLevelWriter) WriteLevel(l zerolog.Level, b []byte) (int, error) {
32 if l < zerolog.WarnLevel {
33 return r.Write(b)
34 }
35 return r.ErrWriter.Write(b)
36}

Callers 3

TestWriteLevel_warningFunction · 0.95

Calls 1

WriteMethod · 0.45

Tested by 3

TestWriteLevel_warningFunction · 0.76