When you log a value within a contract method, it generates a log entry that is added to the log receipt, and the variable type is recorded in the contract's ABI. The SDK enables you to parse these values into TypeScript types.
To access the logged values in TypeScript, use the logs property in the FunctionInvocationResult of a contract call result. The logs data will be stored in an Array<any>: