mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
multiples config related add
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
- Disable console debug by default - Display log on get to console and not "click to copy"
This commit is contained in:
parent
7ea708ec14
commit
447859848b
9 changed files with 74 additions and 19 deletions
|
|
@ -76,7 +76,7 @@ open class CustomAnvil : JavaPlugin() {
|
|||
|
||||
private fun addToLogQueue(message: String) {
|
||||
if(debugStorageQueue.size >= 200) {
|
||||
// Let not store infinite debug logs lol
|
||||
// Let not store infinite debug logs
|
||||
debugStorageQueue.removeFirst()
|
||||
}
|
||||
|
||||
|
|
@ -88,7 +88,8 @@ open class CustomAnvil : JavaPlugin() {
|
|||
*/
|
||||
@JvmStatic fun log(message: String) {
|
||||
if (ConfigOptions.debugLog) {
|
||||
instance.logger.info(message)
|
||||
if(ConfigOptions.showDebugLogInConsole)
|
||||
instance.logger.info(message)
|
||||
addToLogQueue(message)
|
||||
}
|
||||
}
|
||||
|
|
@ -98,7 +99,8 @@ open class CustomAnvil : JavaPlugin() {
|
|||
*/
|
||||
@JvmStatic fun verboseLog(message: String) {
|
||||
if (ConfigOptions.verboseDebugLog) {
|
||||
instance.logger.info(message)
|
||||
if(ConfigOptions.showDebugLogInConsole)
|
||||
instance.logger.info(message)
|
||||
addToLogQueue(message)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue