-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix plugins to actually log to file & change output text area font to…
… jb mono
- Loading branch information
1 parent
74ec7f7
commit 97b9963
Showing
9 changed files
with
186 additions
and
97 deletions.
There are no files selected for viewing
25 changes: 16 additions & 9 deletions
25
Common/src/main/java/com/github/serivesmejia/eocvsim/util/LogExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package com.github.serivesmejia.eocvsim.util | ||
|
||
import org.slf4j.LoggerFactory | ||
import kotlin.reflect.KClass | ||
|
||
fun Any.loggerFor(clazz: KClass<*>) = lazy { LoggerFactory.getLogger(clazz.java) } | ||
fun Any.loggerForThis() = lazy { LoggerFactory.getLogger(this::class.java) } | ||
|
||
fun loggerOf(name: String) = lazy { LoggerFactory.getLogger(name) } | ||
package com.github.serivesmejia.eocvsim.util | ||
|
||
import org.slf4j.LoggerFactory | ||
import kotlin.reflect.KClass | ||
|
||
fun Any.loggerFor(clazz: KClass<*>) = lazy { | ||
LoggerFactory.getLogger(clazz.java) | ||
} | ||
|
||
fun Any.loggerForThis() = lazy { | ||
LoggerFactory.getLogger(this::class.java) | ||
} | ||
|
||
fun loggerOf(name: String) = lazy { | ||
LoggerFactory.getLogger(name) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.