- 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
-
- createAndStart(TinyLoki.Settings) - Static method in class pl.mjaron.tinyloki.TinyLoki
-
- createAndStart(String, String, String) - Static method in class pl.mjaron.tinyloki.TinyLoki
-
- createAndStart(String, String, String, int) - Static method in class pl.mjaron.tinyloki.TinyLoki
-
- createAndStart(String, String, String, ILogCollector, ILogMonitor) - Static method in class pl.mjaron.tinyloki.TinyLoki
-
- createAndStart(String, String, String, int, ILogCollector, ILogMonitor) - Static method in class pl.mjaron.tinyloki.TinyLoki
-
- 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
-
- 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
-
- 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.
- 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
-
- StreamBuilder - Class in pl.mjaron.tinyloki
-
Helper class for shorter initialization code.
- StreamBuilder(LogController) - Constructor for class pl.mjaron.tinyloki.StreamBuilder
-