We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use KotlinLogging in Gradle Plugin. How to route logging messages to Gradle Logging API? Probably using SLF4J?
You can create Logger using org.gradle.api.logging.Logging.getLogger(my.Plugin::class.java) or you can use project.logger property directly.
org.gradle.api.logging.Logging.getLogger(my.Plugin::class.java)
project.logger
The text was updated successfully, but these errors were encountered:
Thank you for reporting an issue. See the wiki for documentation and slack for questions.
Sorry, something went wrong.
According to docs:
Gradle routes all logging via SLF4J. You can use either an SLF4J Logger or a Gradle Logger to perform logging.
https://docs.gradle.org/current/javadoc/org/gradle/api/logging/Logging.html
So I think using slf4j module (regular jvm) should work.
No branches or pull requests
I want to use KotlinLogging in Gradle Plugin. How to route logging messages to Gradle Logging API? Probably using SLF4J?
You can create Logger using
org.gradle.api.logging.Logging.getLogger(my.Plugin::class.java)
or you can useproject.logger
property directly.The text was updated successfully, but these errors were encountered: