log.go

Interaction logging for debugging and analysis

Functions

AppendLog

func AppendLog(s string)

AppendLog appends a user-provided string to the interaction log Panics if the log is not open

CloseLog

func CloseLog()

CloseLog closes the interaction log

DisableTrace

func DisableTrace(tag string)

DisableTrace disables trace messages for tag.

EnableTrace

func EnableTrace(tag string)

EnableTrace enables trace messages for tag.

IsLogOpen

func IsLogOpen() bool

IsLogOpen returns true if the interaction log is open

OpenLog

func OpenLog(filename string) bool

OpenLog opens an interaction log file Returns true if successful, false otherwise