Documentation
¶
Index ¶
- func Errorf(ctx context.Context, format string, args ...interface{})
- func GetServiceName(ctx context.Context) string
- func Infof(ctx context.Context, format string, args ...interface{})
- func Reportf(ctx context.Context, format string, args ...interface{})
- func SetLogger(ctx context.Context, logger Logger) context.Context
- func SetRootTaskID(ctx context.Context, taskID string) context.Context
- func SetServiceName(ctx context.Context, name string) context.Context
- func Warnf(ctx context.Context, format string, args ...interface{})
- type DefaultLogger
- func (l *DefaultLogger) Errorf(ctx context.Context, format string, args ...interface{})
- func (l *DefaultLogger) Infof(ctx context.Context, format string, args ...interface{})
- func (l *DefaultLogger) Reportf(ctx context.Context, format string, args ...interface{})
- func (l *DefaultLogger) Warnf(ctx context.Context, format string, args ...interface{})
- type GCPLoggerWrapper
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceName ¶ added in v0.0.15
func SetRootTaskID ¶ added in v0.0.13
func SetServiceName ¶ added in v0.0.15
Types ¶
type DefaultLogger ¶ added in v0.0.4
type DefaultLogger struct{}
func NewDefaultLogger ¶ added in v0.0.4
func NewDefaultLogger() *DefaultLogger
func (*DefaultLogger) Errorf ¶ added in v0.0.4
func (l *DefaultLogger) Errorf(ctx context.Context, format string, args ...interface{})
func (*DefaultLogger) Infof ¶ added in v0.0.4
func (l *DefaultLogger) Infof(ctx context.Context, format string, args ...interface{})
type GCPLoggerWrapper ¶
type GCPLoggerWrapper struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger() *GCPLoggerWrapper
func NewLoggerWithWriter ¶ added in v0.0.36
func NewLoggerWithWriter(writer io.Writer) *GCPLoggerWrapper
func (*GCPLoggerWrapper) Errorf ¶
func (g *GCPLoggerWrapper) Errorf(ctx context.Context, format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.