more dependencies and logging configuration

This commit is contained in:
allison
2026-08-25 22:32:36 -05:00
parent 7f57cdfc26
commit af1cf2cf81
3 changed files with 57 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Main {
static Logger logger = LogManager.getLogger(Main.class);
public static void main(String[] args) {
}
}
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<!--
Source - https://stackoverflow.com/a/21206994
Posted by Thorsten Niehues, modified by community. See post 'Timeline' for change history
Retrieved 2026-08-25, License - CC BY-SA 4.0
-->
<Appenders>
<Console name="Console"
target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<File name ="MyFile"
fileName ="all.log"
immediateFlush ="false"
append ="false">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
</Appenders>
<Loggers>
<Root level="debug">
<AppenderRef ref="Console"/>
<AppenderRef ref="MyFile"/>
</Root>
</Loggers>
</Configuration>