MCPcopy Index your code
hub / github.com/anomalyco/opencode / safeLogName

Function safeLogName

packages/desktop/src/main/logging.ts:114–116  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

112}
113
114function safeLogName(name: string) {
115 return name.replace(/[^a-z0-9_.-]/gi, "_") || "main"
116}
117
118function cleanup() {
119 const dir = root || dirname(log.transports.file.getFile().path)

Callers 2

initLoggingFunction · 0.85
writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected