Package-level declarations

Types

Link copied to clipboard
data class LoggerConfig(val level: LogLevel)

Configuration for an individual logger.

Link copied to clipboard
@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.

Link copied to clipboard
data class LoggingConfig(val loggers: Map<String, LoggerConfig> = mapOf(), val level: LogLevel = LogLevel.Info)

The [tegral.logging] configuration object.

Link copied to clipboard

A feature that adds logging support to the application via the by scope() syntax.

Link copied to clipboard

The log levels.

Properties

Link copied to clipboard

Computes the logger name for the given class, using (in orrder) a LoggerName annotation or the qualified name of the class or <anon>.

Functions

Link copied to clipboard

Adds Tegral Logging's Logger factory to this context builder. You do not need to call this if you are using the Tegral Logging feature. This is mostly useful for manually adding logging in test environments that do not support features (i.e. every Tegral test except integration tests).