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

Create IntellijIDEA plugin for inject logger field in class with annotation #225

Open
megaomegapepe opened this issue Mar 7, 2022 · 6 comments

Comments

@megaomegapepe
Copy link

I would be nice to use annotation on class, which can inject default logger for this class as field, like @slf4j annotation in java, that inject log field.

@github-actions
Copy link

github-actions bot commented Mar 7, 2022

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

@ColeStansbury
Copy link

+1

@oshai
Copy link
Owner

oshai commented Oct 19, 2022

Contribution for that is welcome!

@severn-everett
Copy link
Contributor

Is this issue still valid? I could tackle it, but I'm a bit confused as to what @megaomegapepe is referring to. Unless I'm mistaken, the @slf4j annotation is for Lombok - something that isn't used in Kotlin - not in IntelliJ.

@oshai
Copy link
Owner

oshai commented Apr 28, 2024

what I did in the past is a plugin that adds to file:

private val logger = KotlinLogging.logger {}

but I never published the plugin.

@severn-everett
Copy link
Contributor

severn-everett commented Apr 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants