if (!Iterators.any(Arrays.asList(root.getHandlers()).iterator(), new Predicate<Handler>() {
public boolean apply(Handler handler) {
return handler instanceof DriverLogsHandler;
}
})) {
root.addHandler(new DriverLogsHandler(OperaDriver.logs));
}
root.setLevel(level);
root.setUseParentHandlers(false);