Improve logging

This commit is contained in:
Luis Barrios
2017-01-11 16:04:23 +01:00
parent 1f1bfff4f7
commit 953e038223
3 changed files with 73 additions and 19 deletions
@@ -0,0 +1,16 @@
package io.moquette.logging;
import java.util.ArrayList;
import java.util.Collection;
import io.moquette.interception.InterceptHandler;
public class LoggingUtils {
public static <T extends InterceptHandler> Collection<String> getInterceptorIds(Collection<T> handlers) {
Collection<String> result = new ArrayList<>(handlers.size());
for (T handler : handlers) {
result.add(handler.getID());
}
return result;
}
}