-
-
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.
Merge pull request #121 from deltacv/dev
v3.8.0
- Loading branch information
Showing
84 changed files
with
8,016 additions
and
3,942 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -105,6 +105,8 @@ fabric.properties | |
|
||
*.log | ||
|
||
*.pem | ||
|
||
**/Build.java | ||
**/build/* | ||
|
||
|
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) | ||
} |
Oops, something went wrong.