Add log level configuration (#1156)
* Add loglevel config * Change order of fields --------- Co-authored-by: John Grosh <john.a.grosh@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ public class BotConfig
|
||||
private final static String END_TOKEN = "/// END OF JMUSICBOT CONFIG ///";
|
||||
|
||||
private Path path = null;
|
||||
private String token, prefix, altprefix, helpWord, playlistsFolder,
|
||||
private String token, prefix, altprefix, helpWord, playlistsFolder, logLevel,
|
||||
successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji;
|
||||
private boolean stayInChannel, songInGame, npImages, updatealerts, useEval, dbots;
|
||||
private long owner, maxSeconds, aloneTimeUntilStop;
|
||||
@@ -86,6 +86,7 @@ public class BotConfig
|
||||
songInGame = config.getBoolean("songinstatus");
|
||||
npImages = config.getBoolean("npimages");
|
||||
updatealerts = config.getBoolean("updatealerts");
|
||||
logLevel = config.getString("loglevel");
|
||||
useEval = config.getBoolean("eval");
|
||||
maxSeconds = config.getLong("maxtime");
|
||||
aloneTimeUntilStop = config.getLong("alonetimeuntilstop");
|
||||
@@ -312,7 +313,12 @@ public class BotConfig
|
||||
{
|
||||
return updatealerts;
|
||||
}
|
||||
|
||||
|
||||
public String getLogLevel()
|
||||
{
|
||||
return logLevel;
|
||||
}
|
||||
|
||||
public boolean useEval()
|
||||
{
|
||||
return useEval;
|
||||
|
||||
Reference in New Issue
Block a user