Add logging to discord bot

added 'drowned' event handler in discord bot too
This commit is contained in:
nzBryce101
2024-04-12 20:06:50 +12:00
parent 56665b0f76
commit e256a57acc
5 changed files with 56 additions and 2 deletions

13
target/classes/log4j2.xml Normal file
View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<File name="File" fileName="logs/MCbot.log">
<PatternLayout pattern="%d{dd-MM-yyyy HH:mm:ss} [%t] %-5level %logger{36} - %msg%n" />
</File>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="File" />
</Root>
</Loggers>
</Configuration>