forked from Fascinated/Bat
add topics to logs
This commit is contained in:
parent
43c5473a4f
commit
5b0f06efc2
@ -8,7 +8,7 @@ import net.dv8tion.jda.api.entities.emoji.Emoji;
|
||||
/**
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Log4j2
|
||||
@Log4j2(topic = "Emojis")
|
||||
public class Emojis {
|
||||
public static final Emoji SPOTIFY_EMOJI;
|
||||
public static final Emoji CHECK_MARK_EMOJI;
|
||||
|
@ -9,7 +9,7 @@ import net.dv8tion.jda.api.entities.channel.concrete.TextChannel;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@UtilityClass
|
||||
@Log4j2
|
||||
@Log4j2(topic = "ChannelUtils")
|
||||
public class ChannelUtils {
|
||||
/**
|
||||
* Gets the user with the given id
|
||||
|
@ -15,7 +15,7 @@ import java.net.http.HttpResponse;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@UtilityClass
|
||||
@Log4j2
|
||||
@Log4j2(topic = "PasteUtils")
|
||||
public class PasteUtils {
|
||||
private static final String PASTE_URL = "https://paste.fascinated.cc/";
|
||||
private static final String PASTE_UPLOAD_URL = PASTE_URL + "api/upload";
|
||||
|
@ -12,7 +12,7 @@ import se.michaelthelin.spotify.model_objects.specification.Track;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@UtilityClass
|
||||
@Log4j2
|
||||
@Log4j2(topic = "Spotify Utils")
|
||||
public class SpotifyUtils {
|
||||
/**
|
||||
* Gets the URL of the track that is currently playing.
|
||||
|
@ -9,7 +9,7 @@ import net.dv8tion.jda.api.entities.User;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@UtilityClass
|
||||
@Log4j2
|
||||
@Log4j2(topic = "UserUtils")
|
||||
public class UserUtils {
|
||||
/**
|
||||
* Gets the user with the given id
|
||||
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "AutoRole Listener")
|
||||
public class AutoRoleListener implements EventListener {
|
||||
private final FeatureService featureService;
|
||||
|
||||
|
@ -34,7 +34,7 @@ import java.util.Map;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "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
|
||||
@Log4j2(topic = "Guild Listener")
|
||||
public class GuildListener implements EventListener {
|
||||
private final LogFeature logFeature;
|
||||
|
||||
|
@ -36,7 +36,7 @@ import java.util.List;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "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
|
||||
@Log4j2(topic = "Message Listener")
|
||||
public class MessageListener implements EventListener {
|
||||
private final LogFeature logFeature;
|
||||
|
||||
|
@ -22,7 +22,7 @@ import org.springframework.stereotype.Component;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "NumberOneScoreFeed Listener")
|
||||
public class NumberOneScoreFeedListener implements EventListener {
|
||||
private final GuildService guildService;
|
||||
private final FeatureService featureService;
|
||||
|
@ -21,7 +21,7 @@ import org.springframework.stereotype.Component;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "UserScoreFeed Listener")
|
||||
public class UserScoreFeedListener implements EventListener {
|
||||
private final GuildService guildService;
|
||||
private final FeatureService featureService;
|
||||
|
@ -29,7 +29,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Component
|
||||
@Log4j2
|
||||
@Log4j2(topic = "Spotify Current Command")
|
||||
@CommandInfo(name = "current", description = "Gets the currently playing Spotify track")
|
||||
public class CurrentSubCommand extends BatSubCommand implements EventListener {
|
||||
private final SpotifyService spotifyService;
|
||||
|
@ -6,7 +6,8 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component @Log4j2
|
||||
@Component
|
||||
@Log4j2(topic = "Mongock Listener")
|
||||
public class MongockSuccessEventListener implements ApplicationListener<SpringMigrationSuccessEvent> {
|
||||
@Override
|
||||
public void onApplicationEvent(@NotNull SpringMigrationSuccessEvent event) {
|
||||
|
@ -22,7 +22,7 @@ import java.util.Optional;
|
||||
* @author Fascinated (fascinated7)
|
||||
*/
|
||||
@Service
|
||||
@Log4j2
|
||||
@Log4j2(topic = "Discord Message Service")
|
||||
@DependsOn("discordService")
|
||||
public class DiscordMessageService extends ListenerAdapter {
|
||||
private final DiscordMessageRepository discordMessageRepository;
|
||||
|
Loading…
x
Reference in New Issue
Block a user