diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 796d692..6409079 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -6,7 +6,7 @@
-
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 67431e0..9c04c02 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,5 @@
-
+
-
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 5f3cf0e..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 6633d79..c9f7f7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,4 +12,29 @@
17
17
-
\ No newline at end of file
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.4
+
+
+
+ introduction.HelloWorld>
+
+
+
+
+
+
+
+
+
+ log4j
+ log4j
+ 1.2.17
+
+
+
diff --git a/src/main/java/introduction/HelloWorld.java b/src/main/java/introduction/HelloWorld.java
index 79262dd..1c85158 100644
--- a/src/main/java/introduction/HelloWorld.java
+++ b/src/main/java/introduction/HelloWorld.java
@@ -1,8 +1,12 @@
package introduction;
-public class HelloWorld {
+import org.apache.log4j.Logger;
- public static void main(String [ ] args) {
- System.out.println("Hello! Witaj!");
+public class HelloWorld {
+ static Logger log = Logger.getLogger("name");
+ public static void main(String[] args) {
+ System.out.println("Hello World!");{
+ log.info("message");
+ }
}
}
\ No newline at end of file
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties
new file mode 100644
index 0000000..9518ba7
--- /dev/null
+++ b/src/main/resources/log4j.properties
@@ -0,0 +1,16 @@
+# Root logger option
+log4j.rootLogger=DEBUG, stdout, file
+
+# Redirect log messages to console
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
+
+# Redirect log messages to a log file, support file rolling.
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.File=log.log
+log4j.appender.file.MaxFileSize=5MB
+log4j.appender.file.MaxBackupIndex=10
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
diff --git a/target/Pracownia2020-2021-1.0-SNAPSHOT.jar b/target/Pracownia2020-2021-1.0-SNAPSHOT.jar
new file mode 100644
index 0000000..71fa88d
Binary files /dev/null and b/target/Pracownia2020-2021-1.0-SNAPSHOT.jar differ
diff --git a/target/classes/log4j.properties b/target/classes/log4j.properties
new file mode 100644
index 0000000..9518ba7
--- /dev/null
+++ b/target/classes/log4j.properties
@@ -0,0 +1,16 @@
+# Root logger option
+log4j.rootLogger=DEBUG, stdout, file
+
+# Redirect log messages to console
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
+
+# Redirect log messages to a log file, support file rolling.
+log4j.appender.file=org.apache.log4j.RollingFileAppender
+log4j.appender.file.File=log.log
+log4j.appender.file.MaxFileSize=5MB
+log4j.appender.file.MaxBackupIndex=10
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
diff --git a/target/classes/test b/target/classes/test
new file mode 100644
index 0000000..a229f18
--- /dev/null
+++ b/target/classes/test
@@ -0,0 +1 @@
+test resource file
\ No newline at end of file
diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties
new file mode 100644
index 0000000..e8fb6d4
--- /dev/null
+++ b/target/maven-archiver/pom.properties
@@ -0,0 +1,3 @@
+artifactId=Pracownia2020-2021
+groupId=org.example
+version=1.0-SNAPSHOT
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 0000000..9f5215e
--- /dev/null
+++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1 @@
+introduction\HelloWorld.class
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 0000000..3983585
--- /dev/null
+++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1 @@
+J:\IdeaProjects\PRA2024\src\main\java\introduction\HelloWorld.java