Added note about which HTTP API/URL Tjahzi calls when configured with host/port.

This commit is contained in:
tomasz.kowalczewski committed 2021-04-19 17:18:30 +02:00
1 parent 8f4bf6ed9f
commit a265e29df7
2 files changed
+10

No files matched your search

+5
View File
@@ -50,6 +50,11 @@ appender seemed like a good first.
</Root>
```
### Note on Loki HTTP endpoint and host/port configuration
Tjahzi sends `POST` requests to `/loki/api/v1/push` HTTP endpoint. Specifying e.g. `<host>loki.mydomain.com</host><port>3100</port>`
will configure the appender to call to URL: `http://loki.mydomain.com:3100/loki/api/v1/push`.
## Advanced configuration
This example sets up a root logger with a Loki appender. Note that `pl.tkowalcz.tjahzi.log4j2` is added to `packages` attribute
+5
View File
@@ -51,6 +51,11 @@ On top of the `Core` component that sends logs to Loki this project gives you Lo
</root>
```
### Note on Loki HTTP endpoint and host/port configuration
Tjahzi sends `POST` requests to `/loki/api/v1/push` HTTP endpoint. Specifying e.g. `<host>loki.mydomain.com</host><port>3100</port>`
will configure the appender to call to URL: `http://loki.mydomain.com:3100/loki/api/v1/push`.
## Custom pattern layout and decreasing allocations
Tjahzi provides its own pattern layout class `ch.qos.logback.core.pattern.EfficientPatternLayout`. It is based on