A B C D E F G H I J L M N O P Q R S T U V W X 
All Classes All Packages

A

AbstractHttpSender - Class in com.github.loki4j.logback
Abstract class that implements a common logic shared between standard HTTP sender configurators.
AbstractHttpSender() - Constructor for class com.github.loki4j.logback.AbstractHttpSender
 
AbstractHttpSender.BasicAuth - Class in com.github.loki4j.logback
 
AbstractLoki4jEncoder - Class in com.github.loki4j.logback
Abstract class that provides basic Loki4j batch encoding functionality
AbstractLoki4jEncoder() - Constructor for class com.github.loki4j.logback.AbstractLoki4jEncoder
 
AbstractLoki4jEncoder.LabelCfg - Class in com.github.loki4j.logback
 
AbstractLoki4jEncoder.MessageCfg - Class in com.github.loki4j.logback
 
add(LogRecord, LogRecordBatch) - Method in class com.github.loki4j.client.batch.Batcher
Adds given record to batch and returns a batch if max items limit is reached.
add(Marker) - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
addStatusEvent(Status) - Method in class com.github.loki4j.logback.StatusPrinter
 
allocate(int) - Method in class com.github.loki4j.client.util.ByteBufferFactory
 
apache - Static variable in class com.github.loki4j.client.http.HttpConfig.Builder
 
apache() - Method in class com.github.loki4j.client.http.HttpConfig
A shortcut to preferences specific for ApacheHttpConfig
apache(int, long) - Static method in class com.github.loki4j.client.pipeline.PipelineConfig
 
ApacheHttpClient - Class in com.github.loki4j.client.http
Loki sender that is backed by Apache HttpClient
ApacheHttpClient(HttpConfig) - Constructor for class com.github.loki4j.client.http.ApacheHttpClient
 
ApacheHttpConfig(int, long) - Constructor for class com.github.loki4j.client.http.HttpConfig.ApacheHttpConfig
 
ApacheHttpSender - Class in com.github.loki4j.logback
A configurator for ApacheHttpClient
ApacheHttpSender() - Constructor for class com.github.loki4j.logback.ApacheHttpSender
 
append(long, int, Supplier<LogRecordStream>, Supplier<String>) - Method in class com.github.loki4j.client.pipeline.AsyncBufferPipeline
 
append(ILoggingEvent) - Method in class com.github.loki4j.logback.Loki4jAppender
 
ARRAY_END - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON array end: ]
ARRAY_START - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON array start: [
AsyncBufferPipeline - Class in com.github.loki4j.client.pipeline
 
AsyncBufferPipeline(PipelineConfig) - Constructor for class com.github.loki4j.client.pipeline.AsyncBufferPipeline
 
AUTHORIZATION - Static variable in class com.github.loki4j.client.http.HttpHeaders
 

B

BasicAuth() - Constructor for class com.github.loki4j.logback.AbstractHttpSender.BasicAuth
 
basicAuthToken() - Method in class com.github.loki4j.client.http.HttpConfig
Token to pass to HTTP server if basic auth is enabled
BatchCondition - Enum in com.github.loki4j.client.batch
 
batchEncoded(long, int) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
batchEncodeFailed(Supplier<String>) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
Batcher - Class in com.github.loki4j.client.batch
A component that is responsible for splitting a stream of log events into batches.
Batcher(int, int, long) - Constructor for class com.github.loki4j.client.batch.Batcher
 
batchId - Variable in class com.github.loki4j.client.batch.BinaryBatch
 
batchId() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
batchMaxBytes - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Max number of bytes a single batch can contain (as counted by Loki).
batchMaxItems - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Max number of events to put into a single batch before sending it to Loki
batchSendFailed(Supplier<String>) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
batchSent(long, int) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
batchTimeoutMs - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Max time in milliseconds to keep a batch before sending it to Loki, even if max items/bytes limits for this batch are not reached
BinaryBatch - Class in com.github.loki4j.client.batch
 
body - Variable in class com.github.loki4j.client.http.LokiResponse
 
borrowBuffer() - Method in class com.github.loki4j.client.batch.ByteBufferQueue
 
build() - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
build(String) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
builder() - Static method in class com.github.loki4j.client.http.HttpConfig
 
builder() - Static method in class com.github.loki4j.client.pipeline.PipelineConfig
 
Builder() - Constructor for class com.github.loki4j.client.http.HttpConfig.Builder
 
Builder() - Constructor for class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
ByteBufferFactory - Class in com.github.loki4j.client.util
 
ByteBufferFactory(boolean) - Constructor for class com.github.loki4j.client.util.ByteBufferFactory
 
ByteBufferQueue - Class in com.github.loki4j.client.batch
 
ByteBufferQueue(long, ByteBufferFactory) - Constructor for class com.github.loki4j.client.batch.ByteBufferQueue
 
bytesAsBase64String(byte[]) - Static method in class com.github.loki4j.client.util.StringUtils
 
bytesAsUtf8String(byte[]) - Static method in class com.github.loki4j.client.util.StringUtils
 

C

Cache<K,​V> - Interface in com.github.loki4j.client.util
A simple cache interface.
Cache.UnboundAtomicMapCache<K,​V> - Class in com.github.loki4j.client.util
Simple cache implementation based on atomic reference on unbound hash map.
capacity() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
charset - Variable in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
checkSizeBeforeAdd(LogRecord, LogRecordBatch) - Method in class com.github.loki4j.client.batch.Batcher
Checks if given record can be added to batch without exceeding max bytes limit.
clear() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
clientSpecific - Variable in class com.github.loki4j.client.http.HttpConfig
A configuration specific to a certain HTTP client
close() - Method in class com.github.loki4j.client.http.ApacheHttpClient
 
close() - Method in class com.github.loki4j.client.http.JavaHttpClient
 
com.github.loki4j.client.batch - package com.github.loki4j.client.batch
 
com.github.loki4j.client.http - package com.github.loki4j.client.http
 
com.github.loki4j.client.pipeline - package com.github.loki4j.client.pipeline
 
com.github.loki4j.client.util - package com.github.loki4j.client.util
 
com.github.loki4j.client.writer - package com.github.loki4j.client.writer
 
com.github.loki4j.logback - package com.github.loki4j.logback
 
com.github.loki4j.pkg.dslplatform.json - package com.github.loki4j.pkg.dslplatform.json
 
com.github.loki4j.slf4j.marker - package com.github.loki4j.slf4j.marker
 
COMMA - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing comma separator: ,
connectionKeepAliveMs - Variable in class com.github.loki4j.client.http.HttpConfig.ApacheHttpConfig
A duration of time which the connection can be safely kept idle for later reuse.
connectionTimeoutMs - Variable in class com.github.loki4j.client.http.HttpConfig
Time in milliseconds to wait for HTTP connection to Loki to be established before reporting an error
contains(String) - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
contains(Marker) - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
CONTENT_TYPE - Static variable in class com.github.loki4j.client.http.HttpHeaders
 
contentType - Variable in class com.github.loki4j.client.http.HttpConfig
Content-type header to send to Loki
contentType - Variable in class com.github.loki4j.client.pipeline.PipelineConfig.WriterFactory
HTTP content-type generated by this Writer
create(long, int, LogRecordStream, String) - Static method in class com.github.loki4j.client.batch.LogRecord
 
create(String...) - Static method in class com.github.loki4j.client.batch.LogRecordStream
 

D

data - Variable in class com.github.loki4j.client.batch.BinaryBatch
 
defaultHttpClientFactory - Static variable in class com.github.loki4j.client.pipeline.PipelineConfig
 
drain(long, LogRecordBatch) - Method in class com.github.loki4j.client.batch.Batcher
Returns a batch if max timeout since the last batch was sended
DRAIN - com.github.loki4j.client.batch.BatchCondition
 
drainOnStop - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
If true, the pipeline will try to send all the remaining events on shutdown, so the proper shutdown procedure might take longer.

E

equals(Object) - Method in class com.github.loki4j.client.batch.LogRecord
 
equals(Object) - Method in class com.github.loki4j.client.batch.LogRecordStream
 
equals(Object) - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
error(String, Object...) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
error(String, Object...) - Method in class com.github.loki4j.logback.InternalLogger
 
error(Throwable, String, Object...) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
error(Throwable, String, Object...) - Method in class com.github.loki4j.logback.InternalLogger
 
ESCAPE - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON escape: \\
eventAppended(long, boolean) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
eventToMessage(ILoggingEvent) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
eventToMessage(ILoggingEvent) - Method in interface com.github.loki4j.logback.Loki4jEncoder
 
eventToStream(ILoggingEvent) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
eventToStream(ILoggingEvent) - Method in interface com.github.loki4j.logback.Loki4jEncoder
 

F

factory - Variable in class com.github.loki4j.client.pipeline.PipelineConfig.WriterFactory
A factory for creating a Writer instance.
fill(Consumer<HttpConfig.Builder>) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
fillHttpConfig(HttpConfig.Builder) - Method in class com.github.loki4j.logback.AbstractHttpSender
 

G

get(int) - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
get(K, Supplier<V>) - Method in interface com.github.loki4j.client.util.Cache
Get the value from cache based by key.
get(K, Supplier<V>) - Method in class com.github.loki4j.client.util.Cache.UnboundAtomicMapCache
 
getCapacity() - Method in class com.github.loki4j.client.batch.Batcher
 
getCondition() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
getConfig() - Method in class com.github.loki4j.client.http.ApacheHttpClient
 
getConfig() - Method in class com.github.loki4j.client.http.JavaHttpClient
 
getConfig() - Method in interface com.github.loki4j.client.http.Loki4jHttpClient
Get HTTP configuration for this client
getConfig() - Method in class com.github.loki4j.logback.ApacheHttpSender
 
getConfig() - Method in interface com.github.loki4j.logback.HttpSender
 
getConfig() - Method in class com.github.loki4j.logback.JavaHttpSender
 
getEstimatedSizeBytes() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
getHttpClientFactory() - Method in class com.github.loki4j.logback.AbstractHttpSender
 
getHttpClientFactory() - Method in interface com.github.loki4j.logback.HttpSender
 
getLabels() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
getName() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
getSizeBytes() - Method in class com.github.loki4j.client.batch.ByteBufferQueue
 
getSortByTime() - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
getSortByTime() - Method in interface com.github.loki4j.logback.Loki4jEncoder
 
getStaticLabels() - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
getStaticLabels() - Method in interface com.github.loki4j.logback.Loki4jEncoder
 
getUrl() - Method in class com.github.loki4j.logback.AbstractHttpSender
 
getWriterFactory() - Method in class com.github.loki4j.logback.JsonEncoder
 
getWriterFactory() - Method in interface com.github.loki4j.logback.Loki4jEncoder
 
getWriterFactory() - Method in class com.github.loki4j.logback.ProtobufEncoder
 

H

hasChildren() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
hash - Variable in class com.github.loki4j.client.batch.LogRecordStream
 
hashCode() - Method in class com.github.loki4j.client.batch.LogRecord
 
hashCode() - Method in class com.github.loki4j.client.batch.LogRecordStream
 
hashCode() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
hasReferences() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
httpClientFactory - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
A factory for HTTP client for sending logs to Loki.
httpConfig - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Configuration properties for HTTP clients
HttpConfig - Class in com.github.loki4j.client.http
Configuration properties for HTTP senders.
HttpConfig(String, long, long, Optional<String>, String, Optional<String>, Optional<String>, HttpConfig.ClientSpecificConfig) - Constructor for class com.github.loki4j.client.http.HttpConfig
 
HttpConfig.ApacheHttpConfig - Class in com.github.loki4j.client.http
 
HttpConfig.Builder - Class in com.github.loki4j.client.http
 
HttpConfig.ClientSpecificConfig - Interface in com.github.loki4j.client.http
 
HttpConfig.JavaHttpConfig - Class in com.github.loki4j.client.http
 
HttpHeaders - Class in com.github.loki4j.client.http
 
HttpHeaders() - Constructor for class com.github.loki4j.client.http.HttpHeaders
 
HttpSender - Interface in com.github.loki4j.logback
Basic interface that all Loki4j HTTP sender configurators must implement.

I

info(String, Object...) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
info(String, Object...) - Method in class com.github.loki4j.logback.InternalLogger
 
initFrom(LogRecord[], int, int, BatchCondition, int) - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
innerThreadsExpirationMs - Variable in class com.github.loki4j.client.http.HttpConfig.JavaHttpConfig
Maximum time that excess idle threads will wait for new tasks before terminating inner HTTP threads
InternalLogger - Class in com.github.loki4j.logback
A logback-specific implementation of internal logging mechanism
InternalLogger(Object, ContextAware) - Constructor for class com.github.loki4j.logback.InternalLogger
 
internalLoggingFactory - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
A factory for an internal logger.
internalQueuesCheckTimeoutMs - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
A timeout for Loki4j threads to sleep if encode or send queues are empty.
isBinary() - Method in class com.github.loki4j.client.writer.JsonWriter
 
isBinary() - Method in class com.github.loki4j.client.writer.ProtobufWriter
 
isBinary() - Method in interface com.github.loki4j.client.writer.Writer
 
isBlank(CharSequence) - Static method in class com.github.loki4j.client.util.StringUtils
Check if given String is null, empty or contains only whitespace chars.
isEmpty() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
isEmpty() - Method in interface com.github.loki4j.client.writer.Writer
 
isStarted() - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
isTraceEnabled(Object) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
iterator() - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 

J

java - Static variable in class com.github.loki4j.client.http.HttpConfig.Builder
 
java() - Method in class com.github.loki4j.client.http.HttpConfig
A shortcut to preferences specific for ApacheHttpConfig
java(long) - Static method in class com.github.loki4j.client.pipeline.PipelineConfig
 
JavaHttpClient - Class in com.github.loki4j.client.http
Loki client that is backed by Java standard HttpClient
JavaHttpClient(HttpConfig) - Constructor for class com.github.loki4j.client.http.JavaHttpClient
 
JavaHttpConfig(long) - Constructor for class com.github.loki4j.client.http.HttpConfig.JavaHttpConfig
 
JavaHttpSender - Class in com.github.loki4j.logback
A configurator for JavaHttpClient
JavaHttpSender() - Constructor for class com.github.loki4j.logback.JavaHttpSender
 
json - Static variable in class com.github.loki4j.client.pipeline.PipelineConfig
 
JsonEncoder - Class in com.github.loki4j.logback
Encoder that converts log batches into JSON format specified by Loki API
JsonEncoder() - Constructor for class com.github.loki4j.logback.JsonEncoder
 
JsonWriter - Class in com.github.loki4j.client.writer
 
JsonWriter(int) - Constructor for class com.github.loki4j.client.writer.JsonWriter
 

L

LabelCfg() - Constructor for class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
LabelMarker - Class in com.github.loki4j.slf4j.marker
 
LabelMarker(Supplier<Map<String, String>>) - Constructor for class com.github.loki4j.slf4j.marker.LabelMarker
 
labels - Variable in class com.github.loki4j.client.batch.LogRecordStream
 
LogRecord - Class in com.github.loki4j.client.batch
 
LogRecordBatch - Class in com.github.loki4j.client.batch
 
LogRecordBatch(int) - Constructor for class com.github.loki4j.client.batch.LogRecordBatch
 
LogRecordBatch(LogRecord[]) - Constructor for class com.github.loki4j.client.batch.LogRecordBatch
 
LogRecordStream - Class in com.github.loki4j.client.batch
 
Loki4jAppender - Class in com.github.loki4j.logback
Main appender that provides functionality for sending log record batches to Loki
Loki4jAppender() - Constructor for class com.github.loki4j.logback.Loki4jAppender
 
Loki4jEncoder - Interface in com.github.loki4j.logback
Basic interface for all Loki4j encoders
Loki4jHttpClient - Interface in com.github.loki4j.client.http
Basic interface that all Loki4j HTTP senders must implement.
Loki4jLogger - Interface in com.github.loki4j.client.util
A lightweight framework-agnostic interface for internal logging
Loki4jMetrics - Class in com.github.loki4j.client.pipeline
Provides an ability to report logging performance metrics using Micrometer framework
Loki4jMetrics(String) - Constructor for class com.github.loki4j.client.pipeline.Loki4jMetrics
 
Loki4jThreadFactory - Class in com.github.loki4j.client.util
 
Loki4jThreadFactory(String) - Constructor for class com.github.loki4j.client.util.Loki4jThreadFactory
 
LokiResponse - Class in com.github.loki4j.client.http
 
LokiResponse(int, String) - Constructor for class com.github.loki4j.client.http.LokiResponse
 

M

MAX_BYTES - com.github.loki4j.client.batch.BatchCondition
 
MAX_ITEMS - com.github.loki4j.client.batch.BatchCondition
 
maxConnections - Variable in class com.github.loki4j.client.http.HttpConfig.ApacheHttpConfig
Maximum number of HTTP connections setting for HttpClient
maxRetries - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Max number of attempts to send a batch to Loki before it will be dropped.
message - Variable in class com.github.loki4j.client.batch.LogRecord
 
MessageCfg() - Constructor for class com.github.loki4j.logback.AbstractLoki4jEncoder.MessageCfg
 
messageUtf8SizeBytes - Variable in class com.github.loki4j.client.batch.LogRecord
 
metricsEnabled - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
If true, the pipeline will report its metrics using Micrometer

N

name - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Name of this pipeline
nanos - Variable in class com.github.loki4j.client.batch.LogRecord
 
newThread(Runnable) - Method in class com.github.loki4j.client.util.Loki4jThreadFactory
 

O

OBJECT_END - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON object end: }
OBJECT_START - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON object start: {
of(String, Supplier<String>) - Static method in class com.github.loki4j.slf4j.marker.LabelMarker
Creates a Marker containing one Loki label, that is a key-value pair.
of(Supplier<Map<String, String>>) - Static method in class com.github.loki4j.slf4j.marker.LabelMarker
Creates a Marker containing a set of Loki labels, where each label is a key-value pair.
offer(long, int, int, Consumer<ByteBuffer>) - Method in class com.github.loki4j.client.batch.ByteBufferQueue
 

P

password - Variable in class com.github.loki4j.client.http.HttpConfig
Password to use for basic auth
PipelineConfig - Class in com.github.loki4j.client.pipeline
Configuration properties for Loki4j pipeline
PipelineConfig(String, int, int, long, boolean, boolean, long, int, long, long, boolean, boolean, boolean, PipelineConfig.WriterFactory, HttpConfig, Function<HttpConfig, Loki4jHttpClient>, Function<Object, Loki4jLogger>) - Constructor for class com.github.loki4j.client.pipeline.PipelineConfig
 
PipelineConfig.Builder - Class in com.github.loki4j.client.pipeline
 
PipelineConfig.WriterFactory - Class in com.github.loki4j.client.pipeline
A factory for Writer
protobuf - Static variable in class com.github.loki4j.client.pipeline.PipelineConfig
 
ProtobufEncoder - Class in com.github.loki4j.logback
Encoder that converts log batches into Protobuf format specified by Loki API
ProtobufEncoder() - Constructor for class com.github.loki4j.logback.ProtobufEncoder
 
ProtobufWriter - Class in com.github.loki4j.client.writer
 
ProtobufWriter(int, ByteBufferFactory) - Constructor for class com.github.loki4j.client.writer.ProtobufWriter
 
pushUrl - Variable in class com.github.loki4j.client.http.HttpConfig
Loki endpoint to be used for sending batches

Q

QUOTE - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing JSON quote: "

R

RawJsonWriter - Class in com.github.loki4j.pkg.dslplatform.json
 
RawJsonWriter(int) - Constructor for class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
 
remove(Marker) - Method in class com.github.loki4j.slf4j.marker.LabelMarker
 
requestTimeoutMs - Variable in class com.github.loki4j.client.http.HttpConfig
Time in milliseconds to wait for HTTP request to Loki to be responded before reporting an error
reset() - Method in class com.github.loki4j.client.writer.JsonWriter
 
reset() - Method in class com.github.loki4j.client.writer.ProtobufWriter
Resets the writer
reset() - Method in interface com.github.loki4j.client.writer.Writer
 
reset() - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Resets the writer
retryTimeoutMs - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Time in milliseconds to wait before the next attempt to re-send a failed batch.
returnBuffer(BinaryBatch) - Method in class com.github.loki4j.client.batch.ByteBufferQueue
 

S

SEMI - Static variable in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Helper for writing semicolon: :
send(ByteBuffer) - Method in class com.github.loki4j.client.http.ApacheHttpClient
 
send(ByteBuffer) - Method in class com.github.loki4j.client.http.JavaHttpClient
 
send(ByteBuffer) - Method in interface com.github.loki4j.client.http.Loki4jHttpClient
Send a batch to Loki
sendQueueMaxBytes - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Max number of bytes to keep in the send queue.
sendRetryFailed(Supplier<String>) - Method in class com.github.loki4j.client.pipeline.Loki4jMetrics
 
serializeBatch(LogRecordBatch) - Method in class com.github.loki4j.client.writer.JsonWriter
 
serializeBatch(LogRecordBatch) - Method in class com.github.loki4j.client.writer.ProtobufWriter
 
serializeBatch(LogRecordBatch) - Method in interface com.github.loki4j.client.writer.Writer
 
setAuth(AbstractHttpSender.BasicAuth) - Method in class com.github.loki4j.logback.AbstractHttpSender
 
setBatchMaxBytes(int) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setBatchMaxBytes(int) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setBatchMaxItems(int) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setBatchMaxItems(int) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setBatchTimeoutMs(long) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setBatchTimeoutMs(long) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setClientConfig(HttpConfig.ClientSpecificConfig) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setConnectionKeepAliveMs(long) - Method in class com.github.loki4j.logback.ApacheHttpSender
 
setConnectionTimeoutMs(long) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setConnectionTimeoutMs(long) - Method in class com.github.loki4j.logback.AbstractHttpSender
 
setDrainOnStop(boolean) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setDrainOnStop(boolean) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setFormat(Loki4jEncoder) - Method in class com.github.loki4j.logback.Loki4jAppender
"format" instead of "encoder" in the name allows to specify the default implementation, so users don't have to write full-qualified class name by default
setHttp(HttpSender) - Method in class com.github.loki4j.logback.Loki4jAppender
"http" instead of "sender" is just to have a more clear name for the configuration section
setHttpClientFactory(Function<HttpConfig, Loki4jHttpClient>) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setHttpConfig(HttpConfig.Builder) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setInnerThreadsExpirationMs(long) - Method in class com.github.loki4j.logback.JavaHttpSender
 
setInternalLoggingFactory(Function<Object, Loki4jLogger>) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setInternalQueuesCheckTimeoutMs(long) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setKeyValueSeparator(String) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setLabel(AbstractLoki4jEncoder.LabelCfg) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
setMaxConnections(int) - Method in class com.github.loki4j.logback.ApacheHttpSender
 
setMaxRetries(int) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setMaxRetries(int) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setMessage(AbstractLoki4jEncoder.MessageCfg) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
setMetricsEnabled(boolean) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setMetricsEnabled(boolean) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setName(String) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setNopex(boolean) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setPairSeparator(String) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setPassword(String) - Method in class com.github.loki4j.logback.AbstractHttpSender.BasicAuth
 
setPassword(Optional<String>) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setPattern(String) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setPattern(String) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.MessageCfg
 
setPushUrl(String) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setReadMarkers(boolean) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setRequestTimeoutMs(long) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setRequestTimeoutMs(long) - Method in class com.github.loki4j.logback.AbstractHttpSender
 
setRetryTimeoutMs(long) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setRetryTimeoutMs(long) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setSendQueueMaxBytes(long) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setSendQueueMaxBytes(long) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setSortByTime(boolean) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setSortByTime(boolean) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
setStaticLabels(boolean) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setStaticLabels(boolean) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
setStreamCache(Cache<String, LogRecordStream>) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder.LabelCfg
 
setTenantId(String) - Method in class com.github.loki4j.logback.AbstractHttpSender
 
setTenantId(Optional<String>) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setUrl(String) - Method in class com.github.loki4j.logback.AbstractHttpSender
 
setUseDirectBuffers(boolean) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
setUseDirectBuffers(boolean) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setUsername(String) - Method in class com.github.loki4j.logback.AbstractHttpSender.BasicAuth
 
setUsername(Optional<String>) - Method in class com.github.loki4j.client.http.HttpConfig.Builder
 
setVerbose(boolean) - Method in class com.github.loki4j.logback.Loki4jAppender
 
setWriter(PipelineConfig.WriterFactory) - Method in class com.github.loki4j.client.pipeline.PipelineConfig.Builder
 
size() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
size() - Method in class com.github.loki4j.client.writer.JsonWriter
 
size() - Method in class com.github.loki4j.client.writer.ProtobufWriter
 
size() - Method in interface com.github.loki4j.client.writer.Writer
 
size() - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Current position in the buffer.
sizeBytes - Variable in class com.github.loki4j.client.batch.BinaryBatch
 
sizeItems - Variable in class com.github.loki4j.client.batch.BinaryBatch
 
sort(Comparator<LogRecord>) - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
sortByTime - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
If true, log records in batch are sorted by timestamp.
start() - Method in class com.github.loki4j.client.pipeline.AsyncBufferPipeline
 
start() - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
start() - Method in class com.github.loki4j.logback.Loki4jAppender
 
staticLabels - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
If you use only one label for all log records, you can set this flag to true and save some CPU time on grouping records by label.
status - Variable in class com.github.loki4j.client.http.LokiResponse
 
StatusPrinter - Class in com.github.loki4j.logback
Utility class for printing log messages from Loki4j itself to STDERR
StatusPrinter(int) - Constructor for class com.github.loki4j.logback.StatusPrinter
 
stop() - Method in class com.github.loki4j.client.pipeline.AsyncBufferPipeline
 
stop() - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
stop() - Method in class com.github.loki4j.logback.Loki4jAppender
 
stream - Variable in class com.github.loki4j.client.batch.LogRecord
 
streamCount() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
StringUtils - Class in com.github.loki4j.client.util
 
StringUtils() - Constructor for class com.github.loki4j.client.util.StringUtils
 

T

tenantId - Variable in class com.github.loki4j.client.http.HttpConfig
Tenant identifier.
timestampMs - Variable in class com.github.loki4j.client.batch.LogRecord
 
timestampToNanos(long) - Method in class com.github.loki4j.logback.AbstractLoki4jEncoder
 
timestampToNanos(long) - Method in interface com.github.loki4j.logback.Loki4jEncoder
 
toArray() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
toByteArray() - Method in class com.github.loki4j.client.writer.JsonWriter
 
toByteArray() - Method in class com.github.loki4j.client.writer.ProtobufWriter
 
toByteArray() - Method in interface com.github.loki4j.client.writer.Writer
 
toByteArray() - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Content of buffer can be copied to another array of appropriate size.
toByteBuffer(ByteBuffer) - Method in class com.github.loki4j.client.writer.JsonWriter
 
toByteBuffer(ByteBuffer) - Method in class com.github.loki4j.client.writer.ProtobufWriter
 
toByteBuffer(ByteBuffer) - Method in interface com.github.loki4j.client.writer.Writer
 
toByteBuffer(ByteBuffer) - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
 
toString() - Method in class com.github.loki4j.client.batch.BinaryBatch
 
toString() - Method in class com.github.loki4j.client.batch.LogRecord
 
toString() - Method in class com.github.loki4j.client.batch.LogRecordBatch
 
toString() - Method in class com.github.loki4j.client.batch.LogRecordStream
 
trace(String, Object...) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
trace(String, Object...) - Method in class com.github.loki4j.logback.InternalLogger
 
traceEnabledClasses - Static variable in interface com.github.loki4j.client.util.Loki4jLogger
 

U

UnboundAtomicMapCache() - Constructor for class com.github.loki4j.client.util.Cache.UnboundAtomicMapCache
 
UNKNOWN - com.github.loki4j.client.batch.BatchCondition
 
useDirectBuffers - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
Use off-heap memory for storing intermediate data
username - Variable in class com.github.loki4j.client.http.HttpConfig
Username to use for basic auth
utf8Length(CharSequence) - Static method in class com.github.loki4j.client.util.StringUtils
Calculate the number of bytes required to store given string in UTF-8 encoding.
utf8SizeBytes - Variable in class com.github.loki4j.client.batch.LogRecordStream
 

V

validateLogRecordSize(LogRecord) - Method in class com.github.loki4j.client.batch.Batcher
Checks if the given message is less or equal to max allowed size for a batch.
valueOf(String) - Static method in enum com.github.loki4j.client.batch.BatchCondition
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.loki4j.client.batch.BatchCondition
Returns an array containing the constants of this enum type, in the order they are declared.

W

waitSendQueueIsEmpty(long) - Method in class com.github.loki4j.client.pipeline.AsyncBufferPipeline
 
warn(String, Object...) - Method in interface com.github.loki4j.client.util.Loki4jLogger
 
warn(String, Object...) - Method in class com.github.loki4j.logback.InternalLogger
 
writeAsciiString(String) - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Write a quoted string consisting of only ascii characters.
writeByte(byte) - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Write a single byte into the JSON.
Writer - Interface in com.github.loki4j.client.writer
 
writerFactory - Variable in class com.github.loki4j.client.pipeline.PipelineConfig
A factory for Writer
WriterFactory(BiFunction<Integer, ByteBufferFactory, Writer>, String) - Constructor for class com.github.loki4j.client.pipeline.PipelineConfig.WriterFactory
 
writeString(String) - Method in class com.github.loki4j.pkg.dslplatform.json.RawJsonWriter
Write a quoted string into the JSON.

X

X_SCOPE_ORGID - Static variable in class com.github.loki4j.client.http.HttpHeaders
 
A B C D E F G H I J L M N O P Q R S T U V W X 
All Classes All Packages