aztec-nr - protocol_types::debug_log
Module debug_log
Functions
- Utility function to console.log data in the acir simulator. Example: debug_log("blah blah this is a debug string");
- Utility function to console.log data in the acir simulator. This variant receives a format string in which the
${k}tokens will be replaced with the k-eth value in theargsarray. Examples: debug_log_format("get_2(slot:{0}) =>\n\t0:{1}\n\t1:{2}", [storage_slot, note0_hash, note1_hash]); debug_log_format("whole array: {}", [e1, e2, e3, e4]); - Utility function to console.log data in the acir simulator. This variant receives a format string in which the
${k}tokens will be replaced with the k-eth value in theargsslice. Examples: debug_log_format("get_2(slot:{0}) =>\n\t0:{1}\n\t1:{2}", [storage_slot, note0_hash, note1_hash]); debug_log_format("whole slice: {}", [e1, e2, e3, e4]); - Same as debug_log_format, but allows to customize the log level. Consider changing just to 'log_format'
- Same as debug_log, but allows to customize the log level. Consider changing just to 'log'