Versions in this module Expand all Collapse all v0 v0.4.15 Jan 18, 2020 Changes in this version + type Channel uint8 + const ChannelTraceLogging + type EnableCallback func(guid.GUID, ProviderState, Level, uint64, uint64, uintptr) + type EventOpt func(options *eventOptions) + func WithActivityID(activityID guid.GUID) EventOpt + func WithChannel(channel Channel) EventOpt + func WithEventOpts(opts ...EventOpt) []EventOpt + func WithKeyword(keyword uint64) EventOpt + func WithLevel(level Level) EventOpt + func WithOpcode(opcode Opcode) EventOpt + func WithRelatedActivityID(activityID guid.GUID) EventOpt + func WithTags(newTags uint32) EventOpt + type FieldOpt func(em *eventMetadata, ed *eventData) + func BoolArray(name string, values []bool) FieldOpt + func BoolField(name string, value bool) FieldOpt + func Float32Array(name string, values []float32) FieldOpt + func Float32Field(name string, value float32) FieldOpt + func Float64Array(name string, values []float64) FieldOpt + func Float64Field(name string, value float64) FieldOpt + func Int16Array(name string, values []int16) FieldOpt + func Int16Field(name string, value int16) FieldOpt + func Int32Array(name string, values []int32) FieldOpt + func Int32Field(name string, value int32) FieldOpt + func Int64Array(name string, values []int64) FieldOpt + func Int64Field(name string, value int64) FieldOpt + func Int8Array(name string, values []int8) FieldOpt + func Int8Field(name string, value int8) FieldOpt + func IntArray(name string, values []int) FieldOpt + func IntField(name string, value int) FieldOpt + func SmartField(name string, v interface{}) FieldOpt + func StringArray(name string, values []string) FieldOpt + func StringField(name string, value string) FieldOpt + func Struct(name string, opts ...FieldOpt) FieldOpt + func Time(name string, value time.Time) FieldOpt + func Uint16Array(name string, values []uint16) FieldOpt + func Uint16Field(name string, value uint16) FieldOpt + func Uint32Array(name string, values []uint32) FieldOpt + func Uint32Field(name string, value uint32) FieldOpt + func Uint64Array(name string, values []uint64) FieldOpt + func Uint64Field(name string, value uint64) FieldOpt + func Uint8Array(name string, values []uint8) FieldOpt + func Uint8Field(name string, value uint8) FieldOpt + func UintArray(name string, values []uint) FieldOpt + func UintField(name string, value uint) FieldOpt + func UintptrArray(name string, values []uintptr) FieldOpt + func UintptrField(name string, value uintptr) FieldOpt + func WithFields(opts ...FieldOpt) []FieldOpt + type Level uint8 + const LevelAlways + const LevelCritical + const LevelError + const LevelInfo + const LevelVerbose + const LevelWarning + type Opcode uint8 + const OpcodeDCStart + const OpcodeDCStop + const OpcodeInfo + const OpcodeStart + const OpcodeStop + type Provider struct + ID guid.GUID + func NewProvider(name string, callback EnableCallback) (provider *Provider, err error) + func NewProviderWithID(name string, id guid.GUID, callback EnableCallback) (provider *Provider, err error) + func (provider *Provider) Close() error + func (provider *Provider) IsEnabled() bool + func (provider *Provider) IsEnabledForLevel(level Level) bool + func (provider *Provider) IsEnabledForLevelAndKeywords(level Level, keywords uint64) bool + func (provider *Provider) String() string + func (provider *Provider) WriteEvent(name string, eventOpts []EventOpt, fieldOpts []FieldOpt) error + type ProviderState uint32 + const ProviderStateCaptureState + const ProviderStateDisable + const ProviderStateEnable