Skip to content

Commit 5211bd8

Browse files
committed
🔨 chore: add logger example, improve .gitignore
1 parent 6b4a95a commit 5211bd8

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed

‎.gitignore‎

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
# Eclipse IDE Files.
2+
eclipse
3+
bin
4+
*.launch
5+
.settings
6+
.metadata
7+
.classpath
8+
.project
9+
10+
# IntelliJ IDEA Output Files.
11+
out
12+
classes
13+
*.ipr
14+
*.iws
15+
*.iml
116
.idea
17+
18+
# VScode Configuration Directory.
19+
.vscode
20+
21+
# Gradle Output Directories.
222
build
3-
.gradle
23+
.gradle
24+
25+
# Netbeans Output Files.
26+
.nb-gradle
27+
.nb-gradle-properties
28+
29+
# Compiled class file
30+
*.class
31+
32+
# Log file
33+
*.log
34+
35+
# Package Files #
36+
*.jar
37+
*.war
38+
*.nar
39+
*.ear
40+
*.zip
41+
*.tar.gz
42+
*.rar
43+
44+
# VM Crash Logs.
45+
hs_err_pid*
46+
replay_pid*
47+
48+
# Other
49+
run
50+
.DS_Store
51+
Thumbs.db

‎src/main/java/com/example/mod/ExampleMod.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
package com.example.mod;
22

33
import net.weavemc.api.ModInitializer;
4+
import org.apache.logging.log4j.LogManager;
5+
import org.apache.logging.log4j.Logger;
46
import org.jetbrains.annotations.NotNull;
57

68
import java.lang.instrument.Instrumentation;
79

810
public class ExampleMod implements ModInitializer {
11+
private final Logger logger = LogManager.getLogger();
12+
913
@Override
1014
public void init() {
11-
System.out.println("Initializing ExampleMod!");
15+
logger.info("Hello from ExampleMod!");
1216
}
1317

1418
//TODO: This will be removed

0 commit comments

Comments
 (0)