MCPcopy Index your code
hub / github.com/Waishnav/devspace / parseLogLevel

Function parseLogLevel

src/config.ts:94–99  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

92}
93
94function parseLogLevel(value: string | undefined): LogLevel {
95 if (!value || value === "info") return "info";
96 if (["silent", "error", "warn", "debug"].includes(value)) return value as LogLevel;
97
98 throw new Error(`Invalid DEVSPACE_LOG_LEVEL: ${value}`);
99}
100
101function parseLogFormat(value: string | undefined): LogFormat {
102 if (!value || value === "json") return "json";

Callers 1

parseLoggingConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected