A wrapper around the built-in console object. Supports logging strings, as well as objects, arrays, and typed arrays.
console
Console.log("test"); // "test"const bytes = Bytes.fromUtf8String("hello seda");Console.log(bytes); // '{"type":"hex","value":"68656c6c6f2073656461"}'const typedArray = new Uint8Array(5);Console.log(typedArray); // "TypedArray(0000000000)"@jsonclass Response { value!: string;}const response = JSON.parse<Response>('{"value":"5""}');Console.log(response); // '{"value":"5"}' Copy
Console.log("test"); // "test"const bytes = Bytes.fromUtf8String("hello seda");Console.log(bytes); // '{"type":"hex","value":"68656c6c6f2073656461"}'const typedArray = new Uint8Array(5);Console.log(typedArray); // "TypedArray(0000000000)"@jsonclass Response { value!: string;}const response = JSON.parse<Response>('{"value":"5""}');Console.log(response); // '{"value":"5"}'
Static
A wrapper around the built-in
console
object. Supports logging strings, as well as objects, arrays, and typed arrays.Example