diff --git a/.gitignore b/.gitignore index 9edc0b1..0d32c6c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ bin # Ignore MacOS **/.DS_Store .idea/ +run/ diff --git a/README.md b/README.md index 3c60656..a5b54ce 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,4 @@ plugins { * Trove4j * java-graphics/glm - GLM ported to Java. _Maven Central contains an outdated version, a custom repository used instead_ * Apache Commons Math (_not currently used_) +* log4j diff --git a/build.gradle b/build.gradle index 4a47ffe..618a35b 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,11 @@ dependencies { implementation 'ru.windcorp.fork.io.github.java-graphics:glm:1.0.1' - testImplementation 'junit:junit:4.12' + // log4j + compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.3' + compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.3' + + testImplementation 'junit:junit:4.12' } /* @@ -70,4 +74,6 @@ dependencies { runtimeOnly "org.lwjgl:lwjgl-par::$lwjglNatives" runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives" if (lwjglNatives == "natives-macos") runtimeOnly "org.lwjgl:lwjgl-vulkan::$lwjglNatives" -} \ No newline at end of file +} + +// LWJGL END \ No newline at end of file diff --git a/pictures/jetbrains_ide.png b/pictures/jetbrains_ide.png new file mode 100644 index 0000000..75706e6 Binary files /dev/null and b/pictures/jetbrains_ide.png differ diff --git a/src/main/java/ru/windcorp/progressia/client/ProgressiaClientMain.java b/src/main/java/ru/windcorp/progressia/client/ProgressiaClientMain.java index 3129b85..c9e3f2c 100644 --- a/src/main/java/ru/windcorp/progressia/client/ProgressiaClientMain.java +++ b/src/main/java/ru/windcorp/progressia/client/ProgressiaClientMain.java @@ -17,11 +17,17 @@ *******************************************************************************/ package ru.windcorp.progressia.client; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import ru.windcorp.progressia.ProgressiaLauncher; public class ProgressiaClientMain { + private static final Logger logger = LogManager.getLogger(ProgressiaClientMain.class.getName()); + public static void main(String[] args) { + logger.info("App started!"); + ProgressiaLauncher.launch(args, new ClientProxy()); } diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml new file mode 100644 index 0000000..29aaea2 --- /dev/null +++ b/src/main/resources/log4j2.xml @@ -0,0 +1,34 @@ + + + + %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} %p %m%n + logs + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file