Skip navigation links
A B C D E F G H I J L N O P R S T U V W 

A

assertLabelIdentifierNotNullOrEmpty(String) - Static method in class pl.mjaron.tinyloki.Labels
Verifies if labelIdentifier is not null and not empty.

B

Base64Coder - Class in pl.mjaron.tinyloki.third_party
A Base64 encoder/decoder.
build() - Method in class pl.mjaron.tinyloki.StreamBuilder
Create stream with previously defined labels.

C

checkLabelIdentifierWhenNotEmpty(String) - Static method in class pl.mjaron.tinyloki.Labels
checkLabelNameWhenNotEmpty(String) - Static method in class pl.mjaron.tinyloki.Labels
Checks whether label name meets the following rules: Label contains only letters, digits or _ First character is letter or _ Label names beginning with __ are reserved for internal use
clear() - Method in class pl.mjaron.tinyloki.JsonLogStream
Drop old data and next prepare StringBuilder to start new chunk of stream.
clone() - Method in class pl.mjaron.tinyloki.Labels
Creates a deep copy of this object.
closeStreamsEntryTag() - Method in class pl.mjaron.tinyloki.JsonLogStream
Appends JSON tags which closes streams array and JSON root object.
collect() - Method in interface pl.mjaron.tinyloki.ILogCollector
Gets data from streams and clears streams state.
collect() - Method in class pl.mjaron.tinyloki.JsonLogCollector
Create complete stream chunk in JSON string, stored as UTF-8 bytes.
collectAsString() - Method in class pl.mjaron.tinyloki.JsonLogCollector
Create complete stream chunk in JSON string.
configure(LogSenderSettings, ILogMonitor) - Method in class pl.mjaron.tinyloki.DummyLogSender
 
configure(LogSenderSettings, ILogMonitor) - Method in class pl.mjaron.tinyloki.HttpLogSender
 
configure(LogSenderSettings, ILogMonitor) - Method in interface pl.mjaron.tinyloki.ILogSender
Configures this sender.
CONTENT_TYPE - Static variable in class pl.mjaron.tinyloki.JsonLogCollector
 
contentEncoding() - Method in class pl.mjaron.tinyloki.GzipLogEncoder
Provides name of Gzip content encoding.
contentEncoding() - Method in interface pl.mjaron.tinyloki.ILogEncoder
HTTP Content-Encoding describing encoding algorithm.
contentType() - Method in interface pl.mjaron.tinyloki.ILogCollector
HTTP Content-Type describing data type of collect() result.
contentType() - Method in class pl.mjaron.tinyloki.JsonLogCollector
Used in HTTP Content-Type header.
correctLabelName(String) - Static method in class pl.mjaron.tinyloki.Labels
Corrects label name to meet the rules: Label contains only letters, digits or _ First character is letter or _ Label names beginning with __ are reserved for internal use
create() - Static method in class pl.mjaron.tinyloki.LogSenderSettings
Creates a new instance of LogSenderSettings.
createAndStart(TinyLoki.Settings) - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates a new LogController with given TinyLoki.Settings.
createAndStart(String, String, String) - Static method in class pl.mjaron.tinyloki.TinyLoki
Deprecated.
Use TinyLoki.withUrl(String) to initialize settings and finally call TinyLoki.Settings.start(), e.g:
     TinyLoki.withUrl(url).withBasicAuth(user, pass).start();
 
createAndStart(String, String, String, int) - Static method in class pl.mjaron.tinyloki.TinyLoki
Deprecated.
Use TinyLoki.withUrl(String) to initialize settings and finally call TinyLoki.Settings.start(), e.g:
     TinyLoki.withUrl(url)
         .withBasicAuth(user, pass)
         .withConnectTimeout(connectTimeout)
         .start();
 
createAndStart(String, String, String, ILogCollector, ILogMonitor) - Static method in class pl.mjaron.tinyloki.TinyLoki
Deprecated.
Use TinyLoki.withUrl(String) to initialize settings and finally call TinyLoki.Settings.start(), e.g:
     TinyLoki.withUrl(url)
         .withBasicAuth(user, pass)
         .withLogCollector(logCollector)
         .withLogMonitor(logMonitor)
         .start();
 
createAndStart(String, String, String, int, ILogCollector, ILogMonitor) - Static method in class pl.mjaron.tinyloki.TinyLoki
Deprecated.
Use TinyLoki.withUrl(String) to initialize settings and finally call TinyLoki.Settings.start(), e.g:
     TinyLoki.withUrl(url)
         .withBasicAuth(user, pass)
         .withConnectTimeout(connectTimeout)
         .withLogCollector(logCollector)
         .withLogMonitor(logMonitor)
         .start();
 
createStream(Labels) - Method in interface pl.mjaron.tinyloki.ILogCollector
Creates a new stream.
createStream(Labels) - Method in class pl.mjaron.tinyloki.JsonLogCollector
Creates new instance of stream which will notify this collector about new logs.
createStream(Map<String, String>) - Method in class pl.mjaron.tinyloki.LogController
Creates new stream from log collector.
createStream(Labels) - Method in class pl.mjaron.tinyloki.LogController
Creates new stream from log collector.
critical() - Method in class pl.mjaron.tinyloki.Labels
critical() - Method in class pl.mjaron.tinyloki.StreamBuilder
critical() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.FATAL.

D

DEBUG - Static variable in class pl.mjaron.tinyloki.Labels
Debug log level.
debug() - Method in class pl.mjaron.tinyloki.Labels
debug() - Method in class pl.mjaron.tinyloki.StreamBuilder
debug() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.DEBUG.
decode(String) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Decodes a byte array from Base64 format.
decode(char[]) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Decodes a byte array from Base64 format.
decode(char[], int, int) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Decodes a byte array from Base64 format.
decodeLines(String) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Decodes a byte array from Base64 format and ignores line separators, tabs and blanks.
decodeString(String) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Decodes a string from Base64 format.
DEFAULT_CONNECT_TIMEOUT - Static variable in class pl.mjaron.tinyloki.LogSenderSettings
Default timeout for log server connecting in milliseconds.
DEFAULT_MAX_LABEL_NAME_LENGTH - Static variable in class pl.mjaron.tinyloki.LabelSettings
Determines safe length of label name, based on default configuration of loki server.
DEFAULT_MAX_LABEL_VALUE_LENGTH - Static variable in class pl.mjaron.tinyloki.LabelSettings
Determines safe length of label value, based on default configuration of loki server.
DummyLogSender - Class in pl.mjaron.tinyloki
Dummy implementation of ILogSender for testing purposes.
DummyLogSender() - Constructor for class pl.mjaron.tinyloki.DummyLogSender
 

E

encode(byte[]) - Method in class pl.mjaron.tinyloki.GzipLogEncoder
Encode given bytes to gzip format.
encode(byte[]) - Method in interface pl.mjaron.tinyloki.ILogEncoder
Encodes given bytes in a way consistent with ILogEncoder.contentEncoding() value.
encode(byte[]) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a byte array into Base64 format.
encode(byte[], int) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a byte array into Base64 format.
encode(byte[], int, int) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a byte array into Base64 format.
encodeLines(byte[]) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a byte array into Base 64 format and breaks the output into lines of 76 characters.
encodeLines(byte[], int, int, int, String) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a byte array into Base 64 format and breaks the output into lines.
encodeString(String) - Static method in class pl.mjaron.tinyloki.third_party.Base64Coder
Encodes a string into Base64 format.
equals(Object) - Method in class pl.mjaron.tinyloki.Labels
Compares this instance with other instance.
ErrorLogMonitor - Class in pl.mjaron.tinyloki
Prints only error events.
ErrorLogMonitor() - Constructor for class pl.mjaron.tinyloki.ErrorLogMonitor
 
escapeJsonString(StringBuilder, CharSequence) - Static method in class pl.mjaron.tinyloki.Utils
Source: https://stackoverflow.com/a/69338077/6835932

F

FATAL - Static variable in class pl.mjaron.tinyloki.Labels
Fatal log level.
fatal() - Method in class pl.mjaron.tinyloki.Labels
fatal() - Method in class pl.mjaron.tinyloki.StreamBuilder
fatal() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.FATAL.
flush() - Method in class pl.mjaron.tinyloki.JsonLogStream
Provide stream data and clear old logs.
from(Map<String, String>) - Static method in class pl.mjaron.tinyloki.Labels
Creates a new instance of Labels from given Map object.

G

getConnectTimeout() - Method in class pl.mjaron.tinyloki.LogSenderSettings
HTTP connecting timeout getter.
getContentEncoding() - Method in class pl.mjaron.tinyloki.LogSenderSettings
Getter of HTTP Content-Encoding header value.
getContentType() - Method in class pl.mjaron.tinyloki.LogSenderSettings
Getter of HTTP Content-Type header value.
getLabels() - Method in class pl.mjaron.tinyloki.StreamBuilder
Provides access to internal Labels object.
getLabelSettings() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Gives LabelSettings defined by this library's user.
getLogCollector() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Getter of ILogCollector.
getLogEncoder() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Getter of ILogEncoder.
getLogMonitor() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Getter of ILogMonitor.
getLogSender() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Getter of ILogSender.
getLogSenderSettings() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
getMap() - Method in class pl.mjaron.tinyloki.Labels
 
getMaxLabelNameLength() - Method in class pl.mjaron.tinyloki.LabelSettings
Gives information about maximum allowed length of label name.
getMaxLabelValueLength() - Method in class pl.mjaron.tinyloki.LabelSettings
Gives information about maximum allowed length of label value.
getPassword() - Method in class pl.mjaron.tinyloki.LogSenderSettings
Getter of HTTP Basic Authentication password.
getStringBuilder() - Method in class pl.mjaron.tinyloki.JsonLogStream
Provides access to internal string builder for custom purposes.
getUrl() - Method in class pl.mjaron.tinyloki.LogSenderSettings
Getter of HTTP URL used to connect to Grafana Loki server.
getUser() - Method in class pl.mjaron.tinyloki.LogSenderSettings
Getter of HTTP Basic Authentication user.
GzipLogEncoder - Class in pl.mjaron.tinyloki
Gzip encoder.
GzipLogEncoder() - Constructor for class pl.mjaron.tinyloki.GzipLogEncoder
 

H

hardStop(long) - Method in class pl.mjaron.tinyloki.LogController
Interrupts worker thread and tries to join for given interruptTimeout.
hardStop() - Method in class pl.mjaron.tinyloki.LogController
Blocking function.
hashCode() - Method in class pl.mjaron.tinyloki.Labels
Provides hash code.
HttpLogSender - Class in pl.mjaron.tinyloki
Implementation of sending bytes to HTTP server.
HttpLogSender() - Constructor for class pl.mjaron.tinyloki.HttpLogSender
 

I

ILogCollector - Interface in pl.mjaron.tinyloki
Responsible for creating streams (with fixed labels) and collecting data from them.
ILogEncoder - Interface in pl.mjaron.tinyloki
Responsible for encoding the HTTP content.
ILogMonitor - Interface in pl.mjaron.tinyloki
Handlers of logging events.
ILogSender - Interface in pl.mjaron.tinyloki
Sends the logs.
ILogStream - Interface in pl.mjaron.tinyloki
Top-level log interface.
INFO - Static variable in class pl.mjaron.tinyloki.Labels
Info log level.
info() - Method in class pl.mjaron.tinyloki.Labels
info() - Method in class pl.mjaron.tinyloki.StreamBuilder
info() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.INFO.
isAsciiCapitalLetter(char) - Static method in class pl.mjaron.tinyloki.Utils
Tells whether given character is valid ASCII capital letter [A-Z]
isAsciiDigit(char) - Static method in class pl.mjaron.tinyloki.Utils
Tells whether given character is valid ASCII digit [0-9]
isAsciiLetter(char) - Static method in class pl.mjaron.tinyloki.Utils
Tells whether given character is valid ASCII letter [A-Za-z]
isAsciiLetterOrDigit(char) - Static method in class pl.mjaron.tinyloki.Utils
Tells whether given character is valid ASCII letter or digit [0-9A-Za-z]
isAsciiLowercaseLetter(char) - Static method in class pl.mjaron.tinyloki.Utils
Tells whether given character is valid ASCII lowercase letter [a-z]
isHardStopped() - Method in class pl.mjaron.tinyloki.LogController
Tells whether worker thread exited or not.
isNameFirstCharacterCorrect(char) - Static method in class pl.mjaron.tinyloki.Labels
Checks whether first character is a letter or _.
isNameNotFirstCharacterCorrect(char) - Static method in class pl.mjaron.tinyloki.Labels
Checks whether not-first character is a letter, digit or _.
isNameReservedForInternalUse(String) - Static method in class pl.mjaron.tinyloki.Labels
Checks whether label name begins with __, which is reserved for internal use.
isSoftStopped() - Method in class pl.mjaron.tinyloki.LogController
Tells if worker thread has stopped softly, doing all its work before exiting.

J

JsonLogCollector - Class in pl.mjaron.tinyloki
Collects logs in a JSON format consistent with Loki Push API.
JsonLogCollector() - Constructor for class pl.mjaron.tinyloki.JsonLogCollector
 
JsonLogStream - Class in pl.mjaron.tinyloki
Writes logs to JSON-formatted string.
JsonLogStream(JsonLogCollector, Labels) - Constructor for class pl.mjaron.tinyloki.JsonLogStream
Constructor of stream.

L

l(String, String) - Method in class pl.mjaron.tinyloki.Labels
Add a new label and return this object.
l(Map<String, String>) - Method in class pl.mjaron.tinyloki.Labels
Put a map with labels.
l(Labels) - Method in class pl.mjaron.tinyloki.Labels
Put other labels values.
l(String, String) - Method in class pl.mjaron.tinyloki.StreamBuilder
Add a new label and return this object.
l(Labels) - Method in class pl.mjaron.tinyloki.StreamBuilder
Add other labels values.
l(Map<String, String>) - Method in class pl.mjaron.tinyloki.StreamBuilder
Add other labels values.
l(String, String) - Static method in class pl.mjaron.tinyloki.TinyLoki
Initialize a Labels with predefined first label name-value.
l(Map<String, String>) - Static method in class pl.mjaron.tinyloki.TinyLoki
Create labels from mapping.
l(Labels) - Static method in class pl.mjaron.tinyloki.TinyLoki
Create a deep copy of given labels.
Labels - Class in pl.mjaron.tinyloki
Represents label name - label value mappings.
Labels() - Constructor for class pl.mjaron.tinyloki.Labels
Default constructor.
Labels(Labels) - Constructor for class pl.mjaron.tinyloki.Labels
Creates a deep copy of other labels.
Labels(Map<String, String>) - Constructor for class pl.mjaron.tinyloki.Labels
Creates the labels from a given map.
LabelSettings - Class in pl.mjaron.tinyloki
Defines parameters of label name and value.
LabelSettings(int, int) - Constructor for class pl.mjaron.tinyloki.LabelSettings
Initializes label settings with custom values.
LabelSettings() - Constructor for class pl.mjaron.tinyloki.LabelSettings
Default constructor.
LEVEL - Static variable in class pl.mjaron.tinyloki.Labels
Log level definition.
log(long, String) - Method in interface pl.mjaron.tinyloki.ILogStream
Thread-safe method used to write log messages to a stream.
log(String) - Method in interface pl.mjaron.tinyloki.ILogStream
Thread-safe log line with current time.
log(long, String) - Method in class pl.mjaron.tinyloki.JsonLogStream
 
LogController - Class in pl.mjaron.tinyloki
Organizes cooperation between collector and sender.
LogController(ILogCollector, ILogEncoder, LogSenderSettings, ILogSender, LabelSettings, ILogMonitor) - Constructor for class pl.mjaron.tinyloki.LogController
Main constructor designed for user of this library.
LogController(ILogCollector, LogSenderSettings, ILogSender, LabelSettings, ILogMonitor) - Constructor for class pl.mjaron.tinyloki.LogController
Deprecated.
Use LogController(ILogCollector, ILogEncoder, LogSenderSettings, ILogSender, LabelSettings, ILogMonitor) instead, where logEncoder parameter should be specified explicitly.
logError(String) - Static method in interface pl.mjaron.tinyloki.ILogMonitor
Used internally by TinyLoki implementation for this library diagnostic purposes.
logInfo(String) - Static method in interface pl.mjaron.tinyloki.ILogMonitor
Used internally by TinyLoki implementation for this library diagnostic purposes.
LogSender - Class in pl.mjaron.tinyloki
Deprecated.
Use HttpLogSender instead.
LogSender() - Constructor for class pl.mjaron.tinyloki.LogSender
Deprecated.
Use HttpLogSender instead.
LogSender(LogSenderSettings) - Constructor for class pl.mjaron.tinyloki.LogSender
Deprecated.
Use HttpLogSender instead.
LogSenderSettings - Class in pl.mjaron.tinyloki
Used to configure HttpLogSender.
LogSenderSettings() - Constructor for class pl.mjaron.tinyloki.LogSenderSettings
 

N

narrowLabelIdentifierLength(String, int) - Static method in class pl.mjaron.tinyloki.Labels
Cuts down identifier if it is too long.

O

onConfigured(String, String) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
onConfigured(String, String) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called when LogController is set up and ready to work.
onConfigured(String, String) - Method in class pl.mjaron.tinyloki.VerboseLogMonitor
 
onEncoded(byte[], byte[]) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
onEncoded(byte[], byte[]) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called when HTTP message content has been encoded.
onEncoded(byte[], byte[]) - Method in class pl.mjaron.tinyloki.VerboseLogMonitor
 
onException(Exception) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
onException(Exception) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called on any exception.
onStreamReleased(ILogStream) - Method in class pl.mjaron.tinyloki.JsonLogCollector
Given stream will not be flushed by this log collector anymore, so given stream will accumulate all next logs causing memory leaks (if it will not be garbage collected).
onWorkerThreadExit(boolean) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
onWorkerThreadExit(boolean) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called when worker thread exits.
onWorkerThreadExit(boolean) - Method in class pl.mjaron.tinyloki.VerboseLogMonitor
 

P

pl.mjaron.tinyloki - package pl.mjaron.tinyloki
TinyLoki - Grafana Loki client library.
pl.mjaron.tinyloki.third_party - package pl.mjaron.tinyloki.third_party
 
prettify(Labels, int, int) - Static method in class pl.mjaron.tinyloki.Labels
Creates a new Labels object with corrected label values, so such labels will be accepted by Grafana Loki server.
prettify(Labels, LabelSettings) - Static method in class pl.mjaron.tinyloki.Labels
Creates a new Labels object with corrected label values, so such labels will be accepted by Grafana Loki server.
prettifyLabelIdentifier(String, int) - Static method in class pl.mjaron.tinyloki.Labels
prettifyLabelIdentifier(String) - Static method in class pl.mjaron.tinyloki.Labels
Deprecated.
This method will be removed in the future release. Use Labels.prettifyLabelIdentifier(String, int) instead.
prettifyLabelName(String, int) - Static method in class pl.mjaron.tinyloki.Labels
Replaces invalid characters with `_` character.
prettifyLabelValue(String, int) - Static method in class pl.mjaron.tinyloki.Labels
Cuts down identifier if it is too long.

R

release() - Method in interface pl.mjaron.tinyloki.ILogStream
Release log stream, so it isn't longer managed by its log collector.
release() - Method in class pl.mjaron.tinyloki.JsonLogStream
 

S

send(byte[]) - Method in class pl.mjaron.tinyloki.DummyLogSender
 
send(byte[]) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
send(byte[]) - Method in class pl.mjaron.tinyloki.HttpLogSender
Creates connection and sends given data by HTTP request.
send(byte[]) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called before sending given data to HTTP server.
send(byte[]) - Method in interface pl.mjaron.tinyloki.ILogSender
Creates connection and sends given data by HTTP request.
send(byte[]) - Method in class pl.mjaron.tinyloki.VerboseLogMonitor
 
sendErr(int, String) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
sendErr(int, String) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Handle send HTTP response error.
sendOk(int) - Method in class pl.mjaron.tinyloki.ErrorLogMonitor
 
sendOk(int) - Method in interface pl.mjaron.tinyloki.ILogMonitor
Called on HTTP server response with good status.
sendOk(int) - Method in class pl.mjaron.tinyloki.VerboseLogMonitor
 
setConnectTimeout(int) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of timeout when connecting to the HTTP server.
setContentEncoding(String) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of HTTP Content-Encoding header value.
setContentType(String) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of HTTP Content-Type header value.
setMaxLabelNameLength(int) - Method in class pl.mjaron.tinyloki.LabelSettings
Sets maximum allowed length of label name.
setMaxLabelValueLength(int) - Method in class pl.mjaron.tinyloki.LabelSettings
Sets maximum allowed length of label value.
setPassword(String) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of HTTP Basic Authentication password.
Settings(String) - Constructor for class pl.mjaron.tinyloki.TinyLoki.Settings
Settings constructor with initial URL value.
setUrl(String) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of HTTP URL used to connect to Grafana Loki server.
setUser(String) - Method in class pl.mjaron.tinyloki.LogSenderSettings
Setter of HTTP Basic Authentication user.
sleep(long) - Static method in class pl.mjaron.tinyloki.Utils
Sleeps given amount of time.
softStop(long) - Method in class pl.mjaron.tinyloki.LogController
Blocking function.
softStop() - Method in class pl.mjaron.tinyloki.LogController
Blocking function.
softStopAsync() - Method in class pl.mjaron.tinyloki.LogController
Request worker thread to do last jobs.
start() - Method in class pl.mjaron.tinyloki.LogController
Starts worker thread which is responsible for collecting and sending logs.
start() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Creates and starts the LogController instance using parameters defined previously by this settings object.
stream() - Method in class pl.mjaron.tinyloki.LogController
Provides a StreamBuilder to initialize the stream.
StreamBuilder - Class in pl.mjaron.tinyloki
Helper class for shorter initialization code.
StreamBuilder(LogController) - Constructor for class pl.mjaron.tinyloki.StreamBuilder
 

T

TinyLoki - Class in pl.mjaron.tinyloki
Top-level class which allows initializing the logging system.
TinyLoki() - Constructor for class pl.mjaron.tinyloki.TinyLoki
 
TinyLoki.Settings - Class in pl.mjaron.tinyloki
Configuration used to create a new LogController object.
toString() - Method in class pl.mjaron.tinyloki.Labels
 
TRACE - Static variable in class pl.mjaron.tinyloki.Labels
Trace log level (the same as verbose).
trace() - Method in class pl.mjaron.tinyloki.Labels
trace() - Method in class pl.mjaron.tinyloki.StreamBuilder
trace() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.TRACE.

U

UNKNOWN - Static variable in class pl.mjaron.tinyloki.Labels
Unknown log level.
unknown() - Method in class pl.mjaron.tinyloki.Labels
unknown() - Method in class pl.mjaron.tinyloki.StreamBuilder
unknown() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.UNKNOWN.
Utils - Class in pl.mjaron.tinyloki
Contains universal common methods.
Utils() - Constructor for class pl.mjaron.tinyloki.Utils
 

V

validateLabelIdentifierOrThrow(String) - Static method in class pl.mjaron.tinyloki.Labels
Deprecated.
This method is unnecessary and will be removed in the future.
VERBOSE - Static variable in class pl.mjaron.tinyloki.Labels
Verbose log level.
verbose() - Method in class pl.mjaron.tinyloki.Labels
verbose() - Method in class pl.mjaron.tinyloki.StreamBuilder
verbose() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.VERBOSE.
VerboseLogMonitor - Class in pl.mjaron.tinyloki
This implementation prints all communication between this library and HTTP Loki server.
VerboseLogMonitor() - Constructor for class pl.mjaron.tinyloki.VerboseLogMonitor
 

W

waitForLogs(long) - Method in interface pl.mjaron.tinyloki.ILogCollector
Stop thread until a new log will occur.
waitForLogs(long) - Method in class pl.mjaron.tinyloki.JsonLogCollector
Blocking function.
WARN - Static variable in class pl.mjaron.tinyloki.Labels
Warning log level.
warning() - Method in class pl.mjaron.tinyloki.Labels
warning() - Method in class pl.mjaron.tinyloki.StreamBuilder
warning() - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates new Labels with label level set to Labels.WARN.
withBasicAuth(String, String) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Sets the HTTP Basic Auth credentials.
withConnectTimeout(int) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Sets the timeout of HTTP connection used to send logs to the Grafana Loki server.
withErrorLogMonitor() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows setting ErrorLogMonitor explicitly.
withGzipLogEncoder() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Sets the ILogEncoder used to encode logs to GzipLogEncoder.
withLabelLength(int, int) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows changing the default limits of length of label name and value.
withLogCollector(ILogCollector) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows changing the default ILogCollector, which currently is JsonLogCollector.
withLogEncoder(ILogEncoder) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows changing the default ILogEncoder, which currently is null (no log encoder).
withLogMonitor(ILogMonitor) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows changing the default ILogMonitor, which currently is ErrorLogMonitor.
withLogSender(ILogSender) - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows changing the default ILogSender, which currently is HttpLogSender.
withoutLogEncoder() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Resets the ILogEncoder to no encoder, so logs will not be encoded before sending.
withUrl(String) - Static method in class pl.mjaron.tinyloki.TinyLoki
Creates a new TinyLoki.Settings object which is used to initialize a new LogController instance, e.g:
withVerboseLogMonitor() - Method in class pl.mjaron.tinyloki.TinyLoki.Settings
Allows setting VerboseLogMonitor explicitly.
workerLoop() - Method in class pl.mjaron.tinyloki.LogController
Defines worker thread activity.
A B C D E F G H I J L N O P R S T U V W 
Skip navigation links