* @param loader the class loader
* @param runtimeEventManager the runtime event manager
* @param loggers the loggers
*/
public static void registerLoggers(KnowledgeComponentImplementationModel model, ClassLoader loader, KieRuntimeEventManager runtimeEventManager, List<KieRuntimeLogger> loggers) {
LoggersModel loggersModel = model.getLoggers();
if (loggersModel != null) {
KieLoggers kieLoggers = KieServices.Factory.get().getLoggers();
for (LoggerModel loggerModel : loggersModel.getLoggers()) {
LoggerType loggerType = loggerModel.getType();
if (loggerType == null) {
loggerType = LoggerType.THREADED_FILE;
}
String log = Strings.trimToNull(loggerModel.getLog());