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(...).

Properties

Link copied to clipboard

The name of the logger to use.