Project

General

Profile

« Previous | Next » 

Revision f64f32be

Added by Andreas Müller almost 2 years ago

ref #10072 adapt dataportal to log4j2

View differences:

src/main/java/eu/etaxonomy/dataportal/elements/OpenLayersMap.java
12 12
import java.util.List;
13 13
import java.util.stream.Collectors;
14 14

  
15
import org.apache.log4j.Logger;
15
import org.apache.logging.log4j.LogManager;
16 16
import org.openqa.selenium.By;
17 17
import org.openqa.selenium.NoSuchElementException;
18 18
import org.openqa.selenium.WebElement;
......
43 43
                    .findElements(By.className("openlayers-container"));
44 44
            return maps.stream().map(m -> new OpenLayersMap(m)).collect(Collectors.toList());
45 45
        } catch (NoSuchElementException e) {
46
            Logger.getLogger(OpenLayersMap.class).info("No maps found", e);
46
            LogManager.getLogger(OpenLayersMap.class).info("No maps found", e);
47 47
            return new ArrayList<>();
48 48
        }
49 49
    }
50 50

  
51
    /**
52
     * @return the webElement
53
     */
54 51
    public WebElement getWebElement() {
55 52
        return webElement;
56 53
    }
57 54

  
58
    /**
59
     * @return the mapId
60
     */
61 55
    public String getMapId() {
62 56
        return mapId;
63 57
    }
64 58

  
65
    /**
66
     * @return the mapName
67
     */
68 59
    public String getMapName() {
69 60
        return mapName;
70 61
    }
71

  
72
}
62
}

Also available in: Unified diff