(date: Date = new Date())
| 28 | } |
| 29 | |
| 30 | function createTimestampForLogEntry(date: Date = new Date()): string { |
| 31 | return date.toLocaleTimeString('en-US', { |
| 32 | timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, |
| 33 | hour12: false, |
| 34 | hour: '2-digit', |
| 35 | minute: '2-digit', |
| 36 | second: '2-digit', |
| 37 | fractionalSecondDigits: 3 |
| 38 | }) |
| 39 | } |
| 40 | |
| 41 | function getSessionLogPath(): string { |
| 42 | const timestamp = createTimestampForFilename() |
no outgoing calls
no test coverage detected