diff --git a/web/html/xui/xray.html b/web/html/xui/xray.html
index b82890f6..05a31792 100644
--- a/web/html/xui/xray.html
+++ b/web/html/xui/xray.html
@@ -152,6 +152,49 @@
+
+
+
+
+
+ {{ i18n "pages.xray.logConfigsDesc" }}
+
+
+
+
+
+
+
+
+
+
+
+ [[ level ]]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -920,6 +963,38 @@
get: function () { return this.xraySetting ? JSON.parse(this.xraySetting) : null; },
set: function (newValue) { this.xraySetting = JSON.stringify(newValue, null, 2); },
},
+ logSettings: {
+ get: function () { return this.templateSettings ? this.templateSettings.log : {}; },
+ set: function (newValue) {
+ newTemplateSettings = this.templateSettings;
+ newTemplateSettings.log = newValue;
+ this.templateSettings = newTemplateSettings;
+ },
+ },
+ logLevel: {
+ get: function () { return this.logSettings?.loglevel?? 'none'; },
+ set: function (newValue) {
+ newLogSettings = this.logSettings;
+ newLogSettings.loglevel = newValue;
+ this.logSettings = newLogSettings;
+ },
+ },
+ logAccess: {
+ get: function () { return this.logSettings?.access?? ''; },
+ set: function (newValue) {
+ newLogSettings = this.logSettings;
+ newValue == "" ? delete newLogSettings.access : newLogSettings.access = newValue;
+ this.logSettings = newLogSettings;
+ },
+ },
+ logError: {
+ get: function () { return this.logSettings?.error?? ''; },
+ set: function (newValue) {
+ newLogSettings = this.logSettings;
+ newValue == "" ? delete newLogSettings.error : newLogSettings.error = newValue;
+ this.logSettings = newLogSettings;
+ },
+ },
inboundSettings: {
get: function () { return this.templateSettings ? JSON.stringify(this.templateSettings.inbounds, null, 2) : null; },
set: function (newValue) {
diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml
index 7226ba52..2f9ad5bd 100644
--- a/web/translation/translate.en_US.toml
+++ b/web/translation/translate.en_US.toml
@@ -309,6 +309,8 @@
"advancedTemplate" = "Advanced"
"generalConfigs" = "General Strategy"
"generalConfigsDesc" = "These options will determine general strategy adjustments."
+"logConfigs" = "Log"
+"logConfigsDesc" = "Logs may affect your server's efficiency. It is recommended to enable it wisely only in case of your needs"
"blockConfigs" = "Protection Shield"
"blockConfigsDesc" = "These options will block traffic based on specific requested protocols and websites."
"blockCountryConfigs" = "Block Country"
diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml
index 17a1a704..03434574 100644
--- a/web/translation/translate.fa_IR.toml
+++ b/web/translation/translate.fa_IR.toml
@@ -308,6 +308,8 @@
"advancedTemplate" = "پیشرفته"
"generalConfigs" = "استراتژی کلی"
"generalConfigsDesc" = "این گزینهها استراتژی کلی ترافیک را تعیین میکنند"
+"logConfigs" = "لاگ"
+"logConfigsDesc" = "لاگ ها ممکن است بر کارایی سرور شما تأثیر بگذارند. توصیه می شود فقط در صورت نیاز آن را آگاهانه فعال کنید"
"blockConfigs" = "سپر محافظ"
"blockConfigsDesc" = "این گزینهها ترافیک را بر اساس پروتکلهای درخواستی خاص، و وب سایتها مسدود میکند"
"blockCountryConfigs" = "مسدودسازی کشور"
diff --git a/web/translation/translate.ru_RU.toml b/web/translation/translate.ru_RU.toml
index cc6a2cfb..b12fbc27 100644
--- a/web/translation/translate.ru_RU.toml
+++ b/web/translation/translate.ru_RU.toml
@@ -309,6 +309,8 @@
"advancedTemplate" = "Расширенные шаблоны"
"generalConfigs" = "Основные настройки"
"generalConfigsDesc" = "Общие настройки"
+"logConfigs" = "Журнал"
+"logConfigsDesc" = "Журналы могут повлиять на эффективность вашего сервера. Рекомендуется включать их с умом только в случае ваших нужд!"
"blockConfigs" = "Блокирующие конфигурации"
"blockConfigsDesc" = "Эти параметры не позволят пользователям подключаться к определенным протоколам и веб-сайтам."
"blockCountryConfigs" = "Конфигурация блокировки стран"
diff --git a/web/translation/translate.vi_VN.toml b/web/translation/translate.vi_VN.toml
index 676358c8..046917b3 100644
--- a/web/translation/translate.vi_VN.toml
+++ b/web/translation/translate.vi_VN.toml
@@ -309,6 +309,8 @@
"advancedTemplate" = "Mẫu nâng cao"
"generalConfigs" = "Cấu hình Chung"
"generalConfigsDesc" = "Những tùy chọn này sẽ cung cấp điều chỉnh tổng quát."
+"logConfigs" = "Nhật ký"
+"logConfigsDesc" = "Nhật ký có thể ảnh hưởng đến hiệu suất máy chủ của bạn. Bạn chỉ nên kích hoạt nó một cách khôn ngoan trong trường hợp bạn cần"
"blockConfigs" = "Cấu hình Chặn"
"blockConfigsDesc" = "Những tùy chọn này sẽ ngăn người dùng kết nối đến các giao thức và trang web cụ thể."
"blockCountryConfigs" = "Cấu hình Chặn Quốc gia"
diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml
index 3f90b14a..63fda42c 100644
--- a/web/translation/translate.zh_Hans.toml
+++ b/web/translation/translate.zh_Hans.toml
@@ -309,6 +309,8 @@
"advancedTemplate" = "高级模板部件"
"generalConfigs" = "通用配置"
"generalConfigsDesc" = "这些选项将提供一般调整"
+"logConfigs"="日志"
+"logConfigsDesc" = "日志可能会影响您服务器的效率。建议仅在您需要时明智地启用它"
"blockConfigs" = "阻塞配置"
"blockConfigsDesc" = "这些选项将阻止用户连接到特定协议和网站"
"blockCountryConfigs" = "阻止国家配置"