MCPcopy Create free account
hub / github.com/google/go-cloud / Log

Method Log

server/requestlog/stackdriver.go:51–55  ·  view source on GitHub ↗

Log writes a record to its writer. Multiple concurrent calls will produce sequential writes to its writer.

(ent *Entry)

Source from the content-addressed store, hash-verified

49// Log writes a record to its writer. Multiple concurrent calls will
50// produce sequential writes to its writer.
51func (l *StackdriverLogger) Log(ent *Entry) {
52 if err := l.log(ent); err != nil && l.onErr != nil {
53 l.onErr(err)
54 }
55}
56
57func (l *StackdriverLogger) log(ent *Entry) error {
58 defer l.mu.Unlock()

Callers 2

TestStackdriverLogFunction · 0.95
BenchmarkStackdriverLogFunction · 0.95

Calls 1

logMethod · 0.95

Tested by 2

TestStackdriverLogFunction · 0.76
BenchmarkStackdriverLogFunction · 0.76