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

Function parseLoggingConfig

src/config.ts:144–154  ·  view source on GitHub ↗
(env: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

142}
143
144function parseLoggingConfig(env: NodeJS.ProcessEnv): LoggingConfig {
145 return {
146 level: parseLogLevel(env.DEVSPACE_LOG_LEVEL),
147 format: parseLogFormat(env.DEVSPACE_LOG_FORMAT),
148 requests: env.DEVSPACE_LOG_REQUESTS === undefined ? true : parseBoolean(env.DEVSPACE_LOG_REQUESTS),
149 assets: parseBoolean(env.DEVSPACE_LOG_ASSETS),
150 toolCalls: env.DEVSPACE_LOG_TOOL_CALLS === undefined ? true : parseBoolean(env.DEVSPACE_LOG_TOOL_CALLS),
151 shellCommands: parseBoolean(env.DEVSPACE_LOG_SHELL_COMMANDS),
152 trustProxy: parseBoolean(env.DEVSPACE_TRUST_PROXY),
153 };
154}
155
156function parseWidgetMode(value: string | undefined): WidgetMode {
157 if (!value || value === "full") return "full";

Callers 1

loadConfigFunction · 0.85

Calls 3

parseLogLevelFunction · 0.85
parseLogFormatFunction · 0.85
parseBooleanFunction · 0.85

Tested by

no test coverage detected