เพิ่ม middleware ในการเขียน log โดยเขียนไป elasticsearch โดยไม่ใช้ Serilog เพื่อจัด format เอง

This commit is contained in:
Suphonchai Phoonsawat 2025-03-21 15:44:11 +07:00
parent 71a1c48392
commit b8fef58b28
6 changed files with 130 additions and 10 deletions

View file

@ -9,8 +9,9 @@
}
},
"ElasticConfiguration": {
"Uri": "http://localhost:9200"
"Uri": "http://192.168.1.40:9200"
},
"LogIndex": "bma-ehr-log-index",
"AllowedHosts": "*",
"ConnectionStrings": {
//"DefaultConnection": "User Id=sys;Password=P@ssw0rd;DBA Privilege=SYSDBA;Data Source=localhost:1521/ORCLCDB",