Documentation ¶
Index ¶
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func NewGCPJSONHandler(w io.Writer, traceID string) event.Handler
- func NewLineHandler(w io.Writer) event.Handler
- func Warningf(ctx context.Context, format string, args ...interface{})
- type Labels
- func (l Labels) Debugf(ctx context.Context, format string, args ...interface{})
- func (l Labels) Errorf(ctx context.Context, format string, args ...interface{})
- func (l Labels) Infof(ctx context.Context, format string, args ...interface{})
- func (l Labels) Warningf(ctx context.Context, format string, args ...interface{})
- func (ls Labels) With(kvs ...interface{}) Labels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGCPJSONHandler ¶
NewGCPJSONLogger returns a handler which logs events in a format that is understood by Google Cloud Platform logging.
func NewLineHandler ¶
NewLineHandler returns an event Handler that writes log events one per line in an easy-to-read format:
time level message label1=value1 label2=value2 ...
Types ¶
Click to show internal directories.
Click to hide internal directories.