![JAR search and dependency download from the Maven repository](/logo.png)
com.van.logging.gcp.CloudStorageConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appender-core Show documentation
Show all versions of appender-core Show documentation
Core functionality to send content to various channels
package com.van.logging.gcp;
/**
* Configuration for Google Cloud Storage logs.
*
* As far as authentication, the default mechanism will be used until custom support is needed.
* See https://github.com/googleapis/google-cloud-java#authentication for instructions on setting
* thins up.
*
* The simplest way is to download the JSON somewhere and set the environment variable
* GOOGLE_APPLICATION_CREDENTIALS to point to it.
*
*/
public class CloudStorageConfiguration {
public static final String DEFAULT_BLOB_PATH = "logs/";
private String bucketName;
private String blobNamePrefix = DEFAULT_BLOB_PATH;
private boolean compressionEnabled = false;
public String getBucketName() {
return bucketName;
}
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
public String getBlobNamePrefix() {
return blobNamePrefix;
}
public void setBlobNamePrefix(String blobNamePrefix) {
this.blobNamePrefix = blobNamePrefix;
}
public boolean isCompressionEnabled() {
return compressionEnabled;
}
public void setCompressionEnabled(boolean compressionEnabled) {
this.compressionEnabled = compressionEnabled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy