mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-14 22:17:47 +00:00
Added note about which HTTP API/URL Tjahzi calls when configured with host/port.
This commit is contained in:
1 parent
8f4bf6ed9f
commit
a265e29df7
2 files changed
+10
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user