(type, ...messages)
| 11 | Util.output("error", message, error); |
| 12 | } |
| 13 | static output(type, ...messages) { |
| 14 | let now = new Date(); |
| 15 | let date = `${Util.pad(now.getUTCHours())}:${Util.pad( |
| 16 | now.getUTCMinutes() |
| 17 | )}:${Util.pad(now.getUTCSeconds())}.${Util.pad( |
| 18 | now.getUTCMilliseconds(), |
| 19 | 3 |
| 20 | )}`; |
| 21 | console[type](`[11ty][${date} UTC]`, ...messages); |
| 22 | } |
| 23 | |
| 24 | static capitalize(word) { |
| 25 | return word.substr(0, 1).toUpperCase() + word.substr(1); |