Add ODIN_TEST_SHORT_LOGS define

Strips out the procedure, date, and time information, for when you just
need to know the file, line, and message.
This commit is contained in:
Feoramund
2024-06-15 11:18:40 -04:00
parent 1c940e3968
commit 753516c392
2 changed files with 18 additions and 7 deletions
+16 -7
View File
@@ -8,13 +8,22 @@ import "core:strings"
import "core:sync/chan"
import "core:time"
Default_Test_Logger_Opts :: runtime.Logger_Options {
.Level,
.Terminal_Color,
.Short_File_Path,
.Line,
.Procedure,
.Date, .Time,
when USING_SHORT_LOGS {
Default_Test_Logger_Opts :: runtime.Logger_Options {
.Level,
.Terminal_Color,
.Short_File_Path,
.Line,
}
} else {
Default_Test_Logger_Opts :: runtime.Logger_Options {
.Level,
.Terminal_Color,
.Short_File_Path,
.Line,
.Procedure,
.Date, .Time,
}
}
Log_Message :: struct {