Documentation ¶
Overview ¶
Package logger logs messages as appropriate.
Package logger logs messages as appropriate.
Package logger logs messages as appropriate.
Index ¶
- Variables
- func Close()
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func Init(ctx context.Context, opts LogOpts) error
- func Log(e LogEntry)
- func Warningf(format string, v ...interface{})
- type LogEntry
- type LogOpts
- type Severity
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DeferredFatalFuncs is a slice of functions that will be called prior to os.Exit in Fatal.
DeferredFatalFuncs []func()
)
Functions ¶
Types ¶
type LogEntry ¶
type LogEntry struct { Message string `json:"message"` Labels map[string]string `json:"-"` CallDepth int `json:"-"` Severity Severity `json:"-"` // Source will be overwritten, do not set. Source *logpb.LogEntrySourceLocation `json:"-"` // LocalTimestamp will be overwritten, do not set. LocalTimestamp string `json:"localTimestamp"` }
LogEntry encapsulates a single log entry.
Click to show internal directories.
Click to hide internal directories.