Documentation
¶
Index ¶
- Constants
- func DisableTextConvLog()
- func GetStepName(step interface{}) string
- func MapBasicLogLevel(data smachine.StepLoggerData) (log.Level, string)
- func MapCustomLogLevel(data smachine.StepLoggerData) (log.Level, string)
- func MapLogEvent(eventType smachine.StepLoggerEvent, stepLevel smachine.StepLogLevel) (log.Level, string)
- func PrepareStepName(sd *smachine.StepDeclaration)
- func UseTextConvLog() bool
- type MachineLogger
- func (l MachineLogger) CreateStepLogger(ctx context.Context, sm smachine.StateMachine, tracer smachine.TracerID) smachine.StepLogger
- func (l MachineLogger) LogMachineCritical(data smachine.SlotMachineData, msg string)
- func (l MachineLogger) LogMachineInternal(data smachine.SlotMachineData, msg string)
- func (MachineLogger) LogStopping(*smachine.SlotMachine)
Constants ¶
View Source
const StackMinimizePackage = "github.com/insolar/assured-ledger/ledger-core/conveyor"
Variables ¶
This section is empty.
Functions ¶
func DisableTextConvLog ¶
func DisableTextConvLog()
func GetStepName ¶
func GetStepName(step interface{}) string
func MapBasicLogLevel ¶
func MapBasicLogLevel(data smachine.StepLoggerData) (log.Level, string)
func MapCustomLogLevel ¶
func MapCustomLogLevel(data smachine.StepLoggerData) (log.Level, string)
func MapLogEvent ¶
func MapLogEvent(eventType smachine.StepLoggerEvent, stepLevel smachine.StepLogLevel) (log.Level, string)
func PrepareStepName ¶
func PrepareStepName(sd *smachine.StepDeclaration)
func UseTextConvLog ¶
func UseTextConvLog() bool
Types ¶
type MachineLogger ¶
type MachineLogger struct {
EchoToGlobal bool
}
func (MachineLogger) CreateStepLogger ¶
func (l MachineLogger) CreateStepLogger(ctx context.Context, sm smachine.StateMachine, tracer smachine.TracerID) smachine.StepLogger
func (MachineLogger) LogMachineCritical ¶
func (l MachineLogger) LogMachineCritical(data smachine.SlotMachineData, msg string)
func (MachineLogger) LogMachineInternal ¶
func (l MachineLogger) LogMachineInternal(data smachine.SlotMachineData, msg string)
func (MachineLogger) LogStopping ¶
func (MachineLogger) LogStopping(*smachine.SlotMachine)
Click to show internal directories.
Click to hide internal directories.