forked from Fascinated/Bat
update logging topics
This commit is contained in:
parent
52d4b65d92
commit
45bfae281e
@ -8,7 +8,8 @@ import net.dv8tion.jda.api.entities.emoji.Emoji;
|
|||||||
/**
|
/**
|
||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor @Getter
|
@AllArgsConstructor
|
||||||
|
@Getter
|
||||||
public enum LogCategory {
|
public enum LogCategory {
|
||||||
MESSAGE(Emoji.fromUnicode("📩")),
|
MESSAGE(Emoji.fromUnicode("📩")),
|
||||||
MEMBER(Emoji.fromUnicode("👤")),
|
MEMBER(Emoji.fromUnicode("👤")),
|
||||||
@ -20,15 +21,6 @@ public enum LogCategory {
|
|||||||
*/
|
*/
|
||||||
private final Emoji emoji;
|
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
|
* Gets the log category by the name
|
||||||
*
|
*
|
||||||
@ -43,4 +35,13 @@ public enum LogCategory {
|
|||||||
}
|
}
|
||||||
return null;
|
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)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@AllArgsConstructor @Getter
|
@AllArgsConstructor
|
||||||
|
@Getter
|
||||||
public enum LogType {
|
public enum LogType {
|
||||||
/**
|
/**
|
||||||
* Message Events
|
* Message Events
|
||||||
|
@ -34,7 +34,7 @@ import java.util.Map;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@Log4j2(topic = "Channel Listener")
|
@Log4j2(topic = "Logging - Channel Listener")
|
||||||
public class ChannelListener implements EventListener {
|
public class ChannelListener implements EventListener {
|
||||||
/**
|
/**
|
||||||
* A map of users and the last voice channel they were in
|
* A map of users and the last voice channel they were in
|
||||||
|
@ -22,7 +22,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@Log4j2(topic = "Guild Listener")
|
@Log4j2(topic = "Logging - Guild Listener")
|
||||||
public class GuildListener implements EventListener {
|
public class GuildListener implements EventListener {
|
||||||
private final LogFeature logFeature;
|
private final LogFeature logFeature;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import java.util.List;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@Log4j2(topic = "Member Listener")
|
@Log4j2(topic = "Logging - Member Listener")
|
||||||
public class MemberListener implements EventListener {
|
public class MemberListener implements EventListener {
|
||||||
private final LogFeature logFeature;
|
private final LogFeature logFeature;
|
||||||
private final GuildService guildService;
|
private final GuildService guildService;
|
||||||
|
@ -20,7 +20,7 @@ import org.springframework.stereotype.Component;
|
|||||||
* @author Fascinated (fascinated7)
|
* @author Fascinated (fascinated7)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
@Log4j2(topic = "Message Listener")
|
@Log4j2(topic = "Logging - Message Listener")
|
||||||
public class MessageListener implements EventListener {
|
public class MessageListener implements EventListener {
|
||||||
private final LogFeature logFeature;
|
private final LogFeature logFeature;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user