MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / formatLogTimestamp

Function formatLogTimestamp

src/utils/log-naming.ts:3–5  ·  view source on GitHub ↗
(now: Date = new Date())

Source from the content-addressed store, hash-verified

1import { randomUUID } from 'node:crypto';
2
3export function formatLogTimestamp(now: Date = new Date()): string {
4 return now.toISOString().replace(/[:.]/g, '-');
5}
6
7export function shortRandomSuffix(): string {
8 return randomUUID().slice(0, 8);

Callers 5

generateLogFileNameFunction · 0.90
startTrackedOsLogStreamFunction · 0.90
createArtifactPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected