(args: Arguments)
| 29 | // Convert the given array of values (func call arguments) into a string |
| 30 | // suitable to be used in a log message. |
| 31 | export function argsToLogString(args: Arguments): string { |
| 32 | if (!args) { |
| 33 | return ''; |
| 34 | } |
| 35 | try { |
| 36 | const argStrings = args.map((item, index) => { |
| 37 | const valueString = valueToLogString(item, 'argument'); |
| 38 | return `Arg ${index + 1}: ${valueString}`; |
| 39 | }); |
| 40 | return argStrings.join(', '); |
| 41 | } catch { |
| 42 | return ''; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // Convert the given return value into a string |
| 47 | // suitable to be used in a log message. |
no test coverage detected