* Custom console.log implementation with timestamps * @param {...*} args - Arguments to log
(...args)
| 318 | * @param {...*} args - Arguments to log |
| 319 | */ |
| 320 | function log(...args) { |
| 321 | const argsWithTime = toStringWithTimeStamp(...args); |
| 322 | _prev_log(...argsWithTime); // Spread the array when calling original logger |
| 323 | try { |
| 324 | print(...argsWithTime); |
| 325 | } catch (e) { |
| 326 | _prev_log('Error in log', e); |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Custom console.warn implementation with timestamps |
no test coverage detected