From 45bfae281e51ca930862c76bfae32ae7daea8ca8 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 4 Jul 2024 07:43:53 +0100 Subject: [PATCH] update logging topics --- .../bat/features/logging/LogCategory.java | 21 ++++++++++--------- .../bat/features/logging/LogType.java | 3 ++- .../logging/listeners/ChannelListener.java | 2 +- .../logging/listeners/GuildListener.java | 2 +- .../logging/listeners/MemberListener.java | 2 +- .../logging/listeners/MessageListener.java | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/main/java/cc/fascinated/bat/features/logging/LogCategory.java b/src/main/java/cc/fascinated/bat/features/logging/LogCategory.java index f5d94a8..40e1862 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/LogCategory.java +++ b/src/main/java/cc/fascinated/bat/features/logging/LogCategory.java @@ -8,7 +8,8 @@ import net.dv8tion.jda.api.entities.emoji.Emoji; /** * @author Fascinated (fascinated7) */ -@AllArgsConstructor @Getter +@AllArgsConstructor +@Getter public enum LogCategory { MESSAGE(Emoji.fromUnicode("📩")), MEMBER(Emoji.fromUnicode("👤")), @@ -20,15 +21,6 @@ public enum LogCategory { */ private final Emoji emoji; - /** - * Gets the name of the log category - * - * @return the name - */ - public String getName() { - return EnumUtils.getEnumName(this); - } - /** * Gets the log category by the name * @@ -43,4 +35,13 @@ public enum LogCategory { } return null; } + + /** + * Gets the name of the log category + * + * @return the name + */ + public String getName() { + return EnumUtils.getEnumName(this); + } } diff --git a/src/main/java/cc/fascinated/bat/features/logging/LogType.java b/src/main/java/cc/fascinated/bat/features/logging/LogType.java index 8379ac1..eb302ea 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/LogType.java +++ b/src/main/java/cc/fascinated/bat/features/logging/LogType.java @@ -10,7 +10,8 @@ import java.util.List; /** * @author Fascinated (fascinated7) */ -@AllArgsConstructor @Getter +@AllArgsConstructor +@Getter public enum LogType { /** * Message Events diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java index 2b7aa4b..96b4ee7 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/ChannelListener.java @@ -34,7 +34,7 @@ import java.util.Map; * @author Fascinated (fascinated7) */ @Component -@Log4j2(topic = "Channel Listener") +@Log4j2(topic = "Logging - Channel Listener") public class ChannelListener implements EventListener { /** * A map of users and the last voice channel they were in diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/GuildListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/GuildListener.java index c90fa35..d38e4cf 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/GuildListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/GuildListener.java @@ -22,7 +22,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@Log4j2(topic = "Guild Listener") +@Log4j2(topic = "Logging - Guild Listener") public class GuildListener implements EventListener { private final LogFeature logFeature; diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java index 56ff7e2..f5e3694 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java @@ -36,7 +36,7 @@ import java.util.List; * @author Fascinated (fascinated7) */ @Component -@Log4j2(topic = "Member Listener") +@Log4j2(topic = "Logging - Member Listener") public class MemberListener implements EventListener { private final LogFeature logFeature; private final GuildService guildService; diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java index a6a0c80..a47505d 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MessageListener.java @@ -20,7 +20,7 @@ import org.springframework.stereotype.Component; * @author Fascinated (fascinated7) */ @Component -@Log4j2(topic = "Message Listener") +@Log4j2(topic = "Logging - Message Listener") public class MessageListener implements EventListener { private final LogFeature logFeature;