本文整理汇总了Java中net.dv8tion.jda.core.utils.SimpleLog.getLog方法的典型用法代码示例。如果您正苦于以下问题:Java SimpleLog.getLog方法的具体用法?Java SimpleLog.getLog怎么用?Java SimpleLog.getLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.dv8tion.jda.core.utils.SimpleLog
的用法示例。
在下文中一共展示了SimpleLog.getLog方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import net.dv8tion.jda.core.utils.SimpleLog; //导入方法依赖的package包/类
private void initialize()
{
this.commandQueue = new LinkedList<Command>();
this.log = SimpleLog.getLog("WeenieBot");
this.isLocked = false;
// Load the properties from prop.properties
loadProperties();
// Initialize the sound library and player
this.library = new SoundLibrary(properties.getProperty("directory", "sounds"));
this.player = new SoundPlayer();
initializeBot();
// Schedule the command timer <Default 1 second ticks>
commandTimer = new Timer();
commandTimer.scheduleAtFixedRate(new Tick(), 0, 1000);
}
示例2: SoundPlayer
import net.dv8tion.jda.core.utils.SimpleLog; //导入方法依赖的package包/类
public SoundPlayer()
{
log = SimpleLog.getLog("SoundPlayer");
playerManager = new DefaultAudioPlayerManager();
playerManager.getConfiguration().setResamplingQuality(AudioConfiguration.ResamplingQuality.MEDIUM);
playerManager.registerSourceManager(new LocalAudioSourceManager());
player = playerManager.createPlayer();
player.addListener(this);
}
示例3: DiscordAPI
import net.dv8tion.jda.core.utils.SimpleLog; //导入方法依赖的package包/类
private DiscordAPI() {
SimpleLog JDASocketLog = SimpleLog.getLog("JDASocket");
JDASocketLog.setLevel(SimpleLog.Level.OFF);
SimpleLog JDALog = SimpleLog.getLog("JDA");
JDALog.setLevel(SimpleLog.Level.OFF);
Thread.setDefaultUncaughtExceptionHandler(com.gmt2001.UncaughtExceptionHandler.instance());
}
示例4: ChatListener
import net.dv8tion.jda.core.utils.SimpleLog; //导入方法依赖的package包/类
public ChatListener(String toggleChar, int maxMessageSize)
{
this.toggleChar = toggleChar;
this.maxMessageSize = maxMessageSize;
log = SimpleLog.getLog("ChatListener");
}