debuglogger

package
v0.0.0-...-05bc493 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugMachineLogger

type DebugMachineLogger struct {
	// contains filtered or unexported fields
}

func NewDebugMachineLogger

func NewDebugMachineLogger(underlying smachine.SlotMachineLogger) *DebugMachineLogger

func NewDebugMachineLoggerNoBlock

func NewDebugMachineLoggerNoBlock(underlying smachine.SlotMachineLogger, eventBufLimit int) *DebugMachineLogger

func (*DebugMachineLogger) Abort

func (p *DebugMachineLogger) Abort()

func (*DebugMachineLogger) Continue

func (p *DebugMachineLogger) Continue()

func (*DebugMachineLogger) CreateStepLogger

func (*DebugMachineLogger) EventChan

func (p *DebugMachineLogger) EventChan() <-chan UpdateEvent

func (*DebugMachineLogger) FlushEvents

func (p *DebugMachineLogger) FlushEvents(flushDone synckit.SignalChannel, closeEvents bool)

func (*DebugMachineLogger) GetEvent

func (p *DebugMachineLogger) GetEvent() (ev UpdateEvent)

func (*DebugMachineLogger) LogMachineCritical

func (p *DebugMachineLogger) LogMachineCritical(slotMachineData smachine.SlotMachineData, msg string)

func (*DebugMachineLogger) LogMachineInternal

func (p *DebugMachineLogger) LogMachineInternal(slotMachineData smachine.SlotMachineData, msg string)

func (*DebugMachineLogger) LogStopping

func (p *DebugMachineLogger) LogStopping(m *smachine.SlotMachine)

type DebugStepLogger

type DebugStepLogger struct {
	smachine.StepLogger
	// contains filtered or unexported fields
}

func (DebugStepLogger) CanLogEvent

func (DebugStepLogger) CanLogTestEvent

func (c DebugStepLogger) CanLogTestEvent() bool

func (DebugStepLogger) CreateAsyncLogger

func (DebugStepLogger) LogAdapter

func (c DebugStepLogger) LogAdapter(data smachine.StepLoggerData, adapterID smachine.AdapterID, callID uint64, fields []logfmt.LogFieldMarshaller)

func (DebugStepLogger) LogEvent

func (c DebugStepLogger) LogEvent(data smachine.StepLoggerData, customEvent interface{}, fields []logfmt.LogFieldMarshaller)

func (DebugStepLogger) LogInternal

func (c DebugStepLogger) LogInternal(data smachine.StepLoggerData, updateType string)

func (DebugStepLogger) LogTestEvent

func (c DebugStepLogger) LogTestEvent(data smachine.StepLoggerData, customEvent interface{})

func (DebugStepLogger) LogUpdate

type LoggerSlotPredicateFn

type LoggerSlotPredicateFn func(smachine.StateMachine, smachine.TracerID) bool

type UpdateEvent

type UpdateEvent struct {
	SM          smachine.StateMachine
	Data        smachine.StepLoggerData
	Update      smachine.StepLoggerUpdateData
	CustomEvent interface{}
	AdapterID   smachine.AdapterID
	CallID      uint64
	// contains filtered or unexported fields
}

func (UpdateEvent) IsEmpty

func (e UpdateEvent) IsEmpty() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL