Function
log
(message: string, source = "express")
Source from the content-addressed store, hash-verified
| 9 | const viteLogger = createLogger(); |
| 10 | |
| 11 | export function log(message: string, source = "express") { |
| 12 | const formattedTime = new Date().toLocaleTimeString("en-US", { |
| 13 | hour: "numeric", |
| 14 | minute: "2-digit", |
| 15 | second: "2-digit", |
| 16 | hour12: true, |
| 17 | }); |
| 18 | |
| 19 | console.log(`${formattedTime} [${source}] ${message}`); |
| 20 | } |
| 21 | |
| 22 | export async function setupVite(app: Express, server: Server) { |
| 23 | const serverOptions = { |
Tested by
no test coverage detected