🪓
Logging
A global
log<T>(value: T): void
function is provided by as-pect
to help collect useful information about the state of your program. Simply give it the value you want to log, and it will append a LogValue
item to the current TestResult
or TestGroup
. This method uses the underlying reflection api.log("This will log a string"); // strings!
log(0.4); // Floats!
log(42); // Integers!
log(new Vec3(1, 2, 3)); // References!
log([1, 2, 3]); // Arrays!
Last modified 2yr ago