Package pl.tkowalcz.tjahzi.log4j2
Class LokiAppenderBuilder<B extends LokiAppenderBuilder<B>>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
pl.tkowalcz.tjahzi.log4j2.LokiAppenderBuilder<B>
- Type Parameters:
B- The type to build
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.Builder<LokiAppender>
public class LokiAppenderBuilder<B extends LokiAppenderBuilder<B>>
extends org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
implements org.apache.logging.log4j.core.util.Builder<LokiAppender>
Builds LokiAppender instances.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()longlongintintHeader[]getHost()Label[]longlongintintintgetPort()intintgetUrl()booleanbooleanisUseSSL()booleanvoidsetBatchSize(long batchSize) voidsetBatchWait(long batchWait) voidsetBufferSizeMegabytes(int bufferSizeMegabytes) setConnectTimeoutMillis(int connectTimeoutMillis) voidsetHeaders(Header[] headers) voidvoidsetLogEndpoint(String logEndpoint) voidsetLogLevelLabel(String logLevelLabel) voidsetLogShipperWakeupIntervalMillis(long logShipperWakeupIntervalMillis) voidsetMaxLogLineSizeKilobytes(int maxLogLineSizeKilobytes) voidsetMaxRequestsInFlight(int maxRequestsInFlight) voidsetMaxRetries(int maxRetries) voidsetMetadata(StructuredMetadata[] metadata) voidsetPassword(String password) voidsetPort(int port) setReadTimeoutMillis(int readTimeoutMillis) voidsetShutdownTimeoutSeconds(int shutdownTimeoutSeconds) voidvoidsetUseDaemonThreads(boolean useDaemonThreads) voidsetUsername(String username) voidsetUseSSL(boolean useSSL) voidsetVerbose(boolean verbose) Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender.Builder
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withNameMethods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
LokiAppenderBuilder
public LokiAppenderBuilder()
-
-
Method Details
-
build
- Specified by:
buildin interfaceorg.apache.logging.log4j.core.util.Builder<B extends LokiAppenderBuilder<B>>
-
getHost
-
getUrl
-
setUrl
-
getLogEndpoint
-
setLogEndpoint
-
isUseSSL
public boolean isUseSSL() -
setUseSSL
public void setUseSSL(boolean useSSL) -
isUseDaemonThreads
public boolean isUseDaemonThreads() -
setUseDaemonThreads
public void setUseDaemonThreads(boolean useDaemonThreads) -
getUsername
-
setUsername
-
getPassword
-
setPassword
-
getConnectTimeoutMillis
public int getConnectTimeoutMillis() -
getReadTimeoutMillis
public int getReadTimeoutMillis() -
getHeaders
-
setHost
-
setConnectTimeoutMillis
-
setReadTimeoutMillis
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
getMaxRetries
public int getMaxRetries() -
setMaxRetries
public void setMaxRetries(int maxRetries) -
getBufferSizeMegabytes
public int getBufferSizeMegabytes() -
setBufferSizeMegabytes
public void setBufferSizeMegabytes(int bufferSizeMegabytes) -
getLogLevelLabel
-
setLogLevelLabel
-
getBatchSize
public long getBatchSize() -
setBatchSize
public void setBatchSize(long batchSize) -
getBatchWait
public long getBatchWait() -
setBatchWait
public void setBatchWait(long batchWait) -
getLogShipperWakeupIntervalMillis
public long getLogShipperWakeupIntervalMillis() -
setLogShipperWakeupIntervalMillis
public void setLogShipperWakeupIntervalMillis(long logShipperWakeupIntervalMillis) -
getShutdownTimeoutSeconds
public int getShutdownTimeoutSeconds() -
setShutdownTimeoutSeconds
public void setShutdownTimeoutSeconds(int shutdownTimeoutSeconds) -
setMaxLogLineSizeKilobytes
public void setMaxLogLineSizeKilobytes(int maxLogLineSizeKilobytes) -
getMaxLogLineSizeKilobytes
public long getMaxLogLineSizeKilobytes() -
setMaxRequestsInFlight
public void setMaxRequestsInFlight(int maxRequestsInFlight) -
getMaxRequestsInFlight
public int getMaxRequestsInFlight() -
setHeaders
-
getLabels
-
setLabels
-
getMetadata
-
setMetadata
-
isVerbose
public boolean isVerbose() -
setVerbose
public void setVerbose(boolean verbose)
-