LoggerName

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class LoggerName(val name: String)

Annotation that can be used to annotate a Tegral DI class and use a custom logger.

Note that this only affects loggers retrieved by using:

private val logger: Logger by scope()

It has no effect when using SLF4J's LoggerFactory.getLogger(...).

Constructors

Link copied to clipboard
fun LoggerName(name: String)

Properties

Link copied to clipboard
val name: String

The name of the logger to use.