I'm moving all the environment related data from angular to external api call so that it can be build once and deployed in multiple environments. For NGX Logger it is imported in app.module.ts
and the configs for level
and serverLogLevel
is fetched from environment.ts
currently since it varies based on evironments.
This is the current NGXLogger config
imports:[
LoggerModule.forRoot({
level: NgxLoggerLevel[env.consolelvl],
serverLogLevel: NgxLogerLevel[env.serverlvl]
})
]
I want these env variables to be fetched from api call. How can this be achieved.