api / org.gradle.api / Task / getLogger

getLogger

@Internal abstract fun getLogger(): Logger

Returns the logger for this task. You can use this in your build file to write log messages.

Return
The logger. Never returns null.