getDefaultLogLevel method
Get default log level for environment
Implementation
int getDefaultLogLevel(SDKEnvironment environment) {
try {
final lib = PlatformLoader.loadCommons();
final getLogLevelFn = lib.lookupFunction<Int32 Function(Int32),
int Function(int)>('rac_env_default_log_level');
return getLogLevelFn(_environmentToInt(environment));
} catch (e) {
// Fallback defaults
switch (environment) {
case SDKEnvironment.development:
return RacLogLevel.debug;
case SDKEnvironment.staging:
return RacLogLevel.info;
case SDKEnvironment.production:
return RacLogLevel.warning;
}
}
}