diff --git a/.env.example b/.env.example
index 0908926..7656eb7 100644
--- a/.env.example
+++ b/.env.example
@@ -17,6 +17,11 @@ JAVA_OPTS=-Xmx512m
# Logging configuration
LOG_LEVEL=INFO
+LOKI_HOST=logs-prod-020.grafana.net
+LOKI_PORT=443
+LOKI_USERNAME=your_loki_username
+LOKI_PASSWORD=your_loki_password
+
# App configuration
ENV=DEVELOPMENT
ADMIN_IDS=1000001999,1000002000,1000002001
diff --git a/build.gradle.kts b/build.gradle.kts
index 19f37a6..5b4f7a7 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -24,6 +24,7 @@ configurations {
dependencies {
annotationProcessor("org.projectlombok:lombok:1.18.36")
implementation("com.couchbase.client:java-client:3.7.6")
+ implementation("com.fasterxml.jackson.core:jackson-databind:2.18.2")
implementation("com.google.code.gson:gson:2.11.0")
implementation("com.google.guava:guava:33.4.0-jre")
implementation("org.apache.commons:commons-math3:3.6.1")
@@ -32,6 +33,7 @@ dependencies {
implementation("org.telegram:telegrambots-client:8.0.0")
implementation("org.telegram:telegrambots-extensions:8.0.0")
implementation("org.telegram:telegrambots-longpolling:8.0.0")
+ implementation("pl.tkowalcz.tjahzi:log4j2-appender:0.9.32")
testAnnotationProcessor("org.projectlombok:lombok:1.18.36")
testImplementation(platform("org.junit:junit-bom:5.11.4"))
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml
index c52c9ad..69f8e1a 100644
--- a/src/main/resources/log4j2.xml
+++ b/src/main/resources/log4j2.xml
@@ -3,6 +3,8 @@
%d{HH:mm:ss.SSS} %5p --- [%t] %c : %m%n
UTF-8
+ %d{yyyy-MM-dd HH:mm:ss.SSS} %5p --- [%t] %c : %m%n
+ UTF-8
@@ -12,10 +14,24 @@
+
+
+ ${env:LOKI_HOST}
+ ${env:LOKI_PORT}
+
+ ${env:LOKI_USERNAME}
+ ${env:LOKI_PASSWORD}
+
+
+
+
+
+
+