Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
Setup will direct logs to a timestamped log file with a standard naming pattern, useful for simulations etc.
func SetupSysOut ¶ added in v0.25.0
func SetupSysOut()
SetupSysOut will direct the test logs to stdout
Types ¶
type Cfg ¶
type Cfg struct { LogDir string // directory for the log file TestType string // type of test (comes before timestamp in filename so sorted file list will block these together) TestSubtype string // test subtype (comes after timestamp in filename so sorted file list will show latest of different subtypes together) LogLevel slog.Level }
Click to show internal directories.
Click to hide internal directories.