Skip to content

Commit 22a13f9

Browse files
committed
Migrate to log4j2
1 parent 31dee22 commit 22a13f9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
<dependencies>
2121

2222
<dependency>
23-
<groupId>log4j</groupId>
24-
<artifactId>log4j</artifactId>
25-
<version>1.2.17</version>
23+
<groupId>org.apache.logging.log4j</groupId>
24+
<artifactId>log4j-api</artifactId>
25+
<version>2.12.1</version>
2626
</dependency>
2727

2828
<dependency>
2929
<groupId>com.github.g3force</groupId>
3030
<artifactId>String2ValueConverter</artifactId>
31-
<version>v1.6</version>
31+
<version>2.1</version>
3232
</dependency>
3333

3434
</dependencies>
@@ -74,4 +74,4 @@
7474
</plugin>
7575
</plugins>
7676
</build>
77-
</project>
77+
</project>

src/main/java/com/github/g3force/instanceables/InstanceablePanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
import javax.swing.*;
2020

21-
import org.apache.log4j.Logger;
21+
import org.apache.logging.log4j.LogManager;
22+
import org.apache.logging.log4j.Logger;
2223

2324
import com.github.g3force.instanceables.InstanceableClass.NotCreateableException;
2425

@@ -29,8 +30,7 @@
2930
public class InstanceablePanel extends JPanel
3031
{
3132
private static final long serialVersionUID = -6272636064374504265L;
32-
private static final Logger log = Logger.getLogger(InstanceablePanel.class
33-
.getName());
33+
private static final Logger log = LogManager.getLogger(InstanceablePanel.class.getName());
3434
private final JComboBox<IInstanceableEnum> cbbInstances;
3535
private final JPanel inputPanel;
3636
private final List<JComponent> inputFields = new ArrayList<>();

0 commit comments

Comments
 (0)