Skip to content

Add an extension property for storing a cached logger #29

@jvz

Description

@jvz

Analogous to the extension function T.logger() which constructs a logger using the class of T, an extension property T.logger should be added for an alternative to using the Logging mixin. The general change is fairly simple:

inline val <reified T> T.logger: KotlinLogger
  get() = cachedLoggerOf(T::class.java)

Metadata

Metadata

Assignees

Labels

apiIssues or pull requests that affect the APIenhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions