
org.cloudfoundry.gradle.GradlePluginRestLogCallback.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cf-gradle-plugin Show documentation
Show all versions of cf-gradle-plugin Show documentation
A Gradle plugin that makes it easy to deploy Gradle-based applications to Cloud Foundry instances.
The newest version!
package org.cloudfoundry.gradle
import org.cloudfoundry.client.lib.RestLogCallback
import org.cloudfoundry.client.lib.RestLogEntry
class GradlePluginRestLogCallback implements RestLogCallback {
private def logger
GradlePluginRestLogCallback(def logger) {
this.logger = logger
}
@Override
void onNewLogEntry(RestLogEntry logEntry) {
logger.debug "REQUEST: ${logEntry.method} ${logEntry.uri}"
logger.debug "RESPONSE: ${logEntry.httpStatus} ${logEntry.status} ${logEntry.message}"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy