feature #10: first implementation of logger

This commit is contained in:
2019-07-17 17:37:11 +02:00
parent 09c20fc385
commit 32127b7e19
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package fr.postgresjson.utils
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
internal class LoggerDelegate<in R : Any> : ReadOnlyProperty<R, Logger> {
override fun getValue(thisRef: R, property: KProperty<*>)
= LoggerFactory.getLogger(thisRef.javaClass.packageName)
}