update logging topics
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 40s

This commit is contained in:
Lee 2024-07-04 07:43:53 +01:00
parent 52d4b65d92
commit 45bfae281e
6 changed files with 17 additions and 15 deletions

@ -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);
}
}

@ -10,7 +10,8 @@ import java.util.List;
/**
* @author Fascinated (fascinated7)
*/
@AllArgsConstructor @Getter
@AllArgsConstructor
@Getter
public enum LogType {
/**
* Message Events

@ -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

@ -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;

@ -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;

@ -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;