MCPcopy
hub / github.com/sirupsen/logrus / WithTime

Function WithTime

exported.go:88–90  ·  view source on GitHub ↗

WithTime creates an entry from the standard logger and overrides the time of logs generated with it. Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal or Panic on the Entry it returns.

(t time.Time)

Source from the content-addressed store, hash-verified

86// Note that it doesn't log until you call Debug, Print, Info, Warn, Fatal
87// or Panic on the Entry it returns.
88func WithTime(t time.Time) *Entry {
89 return std.WithTime(t)
90}
91
92// Trace logs a message at level Trace on the standard logger.
93func Trace(args ...interface{}) {

Callers

nothing calls this directly

Calls 1

WithTimeMethod · 0.45

Tested by

no test coverage detected