Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an extension property for storing a cached logger #29

Closed
jvz opened this issue Jan 28, 2023 · 0 comments
Closed

Add an extension property for storing a cached logger #29

jvz opened this issue Jan 28, 2023 · 0 comments
Assignees
Labels
api Issues or pull requests that affect the API enhancement
Milestone

Comments

@jvz
Copy link
Member

jvz commented Jan 28, 2023

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)
@jvz jvz added enhancement api Issues or pull requests that affect the API labels Jan 28, 2023
@jvz jvz added this to the 1.3.0 milestone Jan 28, 2023
@jvz jvz self-assigned this Jan 28, 2023
@jvz jvz closed this as completed in a7130e0 Jan 28, 2023
jvz added a commit that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues or pull requests that affect the API enhancement
Projects
None yet
Development

No branches or pull requests

1 participant