use of org.wso2.ei.dashboard.core.rest.model.LogConfigsInner in project product-mi-tooling by wso2.
the class LogConfigDelegate method createLogConfigsObject.
private LogConfigs createLogConfigsObject(JsonArray logConfigsArray) {
LogConfigs logConfigs = new LogConfigs();
for (JsonElement element : logConfigsArray) {
LogConfigsInner logConfigsInner = createLogConfig(element);
logConfigs.add(logConfigsInner);
}
return logConfigs;
}
use of org.wso2.ei.dashboard.core.rest.model.LogConfigsInner in project product-mi-tooling by wso2.
the class LogConfigDelegate method createLogConfig.
private LogConfigsInner createLogConfig(JsonElement element) {
JsonObject logConfig = element.getAsJsonObject();
LogConfigsInner logConfigsInner = new LogConfigsInner();
logConfigsInner.setName(logConfig.get("loggerName").getAsString());
logConfigsInner.setComponentName(logConfig.get("componentName").getAsString());
logConfigsInner.setLevel(logConfig.get("level").getAsString());
return logConfigsInner;
}
Aggregations