MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / isLogLevel

Function isLogLevel

api/src/utils/env.ts:79–81  ·  view source on GitHub ↗
(level: string)

Source from the content-addressed store, hash-verified

77] as const;
78
79function isLogLevel(level: string): level is LogLevel {
80 return LOG_LEVELS.includes(level);
81}
82
83const _FCC_API_LOG_LEVEL = process.env.FCC_API_LOG_LEVEL || 'info';
84const _FCC_API_LOG_TRANSPORT = process.env.FCC_API_LOG_TRANSPORT || 'default';

Callers 1

env.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected