MCPcopy Index your code
hub / github.com/simstudioai/sim / getNodeEnv

Function getNodeEnv

packages/logger/src/index.ts:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41export type LoggerMetadata = Record<string, string | number | boolean | undefined>
42
43const getNodeEnv = (): string => {
44 if (typeof process !== 'undefined' && process.env) {
45 return process.env.NODE_ENV || 'development'
46 }
47 return 'development'
48}
49
50const getLogLevel = (): string | undefined => {
51 if (typeof process !== 'undefined' && process.env) {

Callers 4

getMinLogLevelFunction · 0.85
getLogConfigFunction · 0.85
constructorMethod · 0.85
shouldLogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected