Documentation
¶
Index ¶
- type LogCallArgs
- type RecordCallArgs
- type StructuredOutputLogProvider
- func (p *StructuredOutputLogProvider) Debug(ctx context.Context, report bool, args ...interface{})
- func (p *StructuredOutputLogProvider) Error(ctx context.Context, report bool, args ...interface{})
- func (p *StructuredOutputLogProvider) Info(ctx context.Context, report bool, args ...interface{})
- func (p StructuredOutputLogProvider) LogCalls(levels ...providers.LogLevel) (result []*LogCallArgs)
- func (p *StructuredOutputLogProvider) Record(ctx context.Context, metrics map[string]interface{})
- func (p StructuredOutputLogProvider) RecordCalls() []*RecordCallArgs
- func (p *StructuredOutputLogProvider) RecordEvent(ctx context.Context, eventName string, metrics map[string]interface{})
- func (p *StructuredOutputLogProvider) Warn(ctx context.Context, report bool, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogCallArgs ¶
type RecordCallArgs ¶
type StructuredOutputLogProvider ¶
type StructuredOutputLogProvider struct {
providers.LogProvider
// contains filtered or unexported fields
}
func LogProvider ¶
func LogProvider(nextProvider providers.LogProvider) *StructuredOutputLogProvider
func (*StructuredOutputLogProvider) Debug ¶
func (p *StructuredOutputLogProvider) Debug(ctx context.Context, report bool, args ...interface{})
func (*StructuredOutputLogProvider) Error ¶
func (p *StructuredOutputLogProvider) Error(ctx context.Context, report bool, args ...interface{})
func (*StructuredOutputLogProvider) Info ¶
func (p *StructuredOutputLogProvider) Info(ctx context.Context, report bool, args ...interface{})
func (StructuredOutputLogProvider) LogCalls ¶
func (p StructuredOutputLogProvider) LogCalls(levels ...providers.LogLevel) (result []*LogCallArgs)
Return list of log calls, filtered to only selected levels (if any present)
func (*StructuredOutputLogProvider) Record ¶
func (p *StructuredOutputLogProvider) Record(ctx context.Context, metrics map[string]interface{})
func (StructuredOutputLogProvider) RecordCalls ¶
func (p StructuredOutputLogProvider) RecordCalls() []*RecordCallArgs
func (*StructuredOutputLogProvider) RecordEvent ¶
func (p *StructuredOutputLogProvider) RecordEvent(ctx context.Context, eventName string, metrics map[string]interface{})
Click to show internal directories.
Click to hide internal directories.