MCPcopy Create free account
hub / github.com/callstack/agent-device / getAppLogConfig

Function getAppLogConfig

src/daemon/app-log.ts:126–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126function getAppLogConfig(): { maxBytes: number; maxRotatedFiles: number } {
127 return {
128 maxBytes: parsePositiveIntEnv('AGENT_DEVICE_APP_LOG_MAX_BYTES', DEFAULT_MAX_APP_LOG_BYTES),
129 maxRotatedFiles: parsePositiveIntEnv(
130 'AGENT_DEVICE_APP_LOG_MAX_FILES',
131 DEFAULT_MAX_ROTATED_FILES,
132 ),
133 };
134}
135
136function getAppLogRedactionPatterns(): RegExp[] {
137 const raw = process.env.AGENT_DEVICE_APP_LOG_REDACT_PATTERNS;

Callers 1

ensureLogPathFunction · 0.85

Calls 1

parsePositiveIntEnvFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…