Просмотр исходного кода

修改日志输出文件地址

lengfaqiang 2 лет назад
Родитель
Сommit
6392036d62

+ 27 - 0
console/src/main/resources/static/console-fe/src/locales/index.d.ts

@@ -0,0 +1,27 @@
+/**
+ * Copyright 1999-2019 Seata.io Group.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export interface ILocaleMap {
+    [key: string]: string
+}
+export interface ILocale {
+  MenuRouter: ILocaleMap;
+  Header: ILocaleMap;
+  Login: ILocaleMap;
+  Overview: ILocaleMap;
+  TransactionInfo: ILocaleMap;
+  GlobalLockInfo: ILocaleMap;
+}

+ 2 - 1
server/src/main/resources/logback-spring-dev.xml

@@ -17,7 +17,8 @@
 
 <configuration scan="true" scanPeriod="60 seconds" debug="false">
     <!-- 定义日志文件的存储地址 -->
-    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
+<!--    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>-->
+    <springProperty scop="context" name="spring.application.name" source="logging.file.path" defaultValue=""/>
 <!--    <property name="LOG_HOME" value="logs/${spring.application.name}"/>-->
     <property name="LOG_HOME" value="/home/sckw/logs/seata"/>
     <!-- 控制台输出 -->

+ 2 - 1
server/src/main/resources/logback-spring-local.xml

@@ -17,7 +17,8 @@
 
 <configuration scan="true" scanPeriod="60 seconds" debug="false">
     <!-- 定义日志文件的存储地址 -->
-    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
+<!--    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>-->
+    <springProperty scop="context" name="spring.application.name" source="logging.file.path" defaultValue=""/>
     <property name="LOG_HOME" value="F:logslog/log/seata"/>
     <!-- 控制台输出 -->
     <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">

+ 2 - 1
server/src/main/resources/logback-spring-prod.xml

@@ -17,7 +17,8 @@
 
 <configuration scan="true" scanPeriod="60 seconds" debug="false">
     <!-- 定义日志文件的存储地址 -->
-    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
+<!--    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>-->
+    <springProperty scop="context" name="spring.application.name" source="logging.file.path" defaultValue=""/>
 <!--    <property name="LOG_HOME" value="logs/${spring.application.name}"/>-->
     <property name="LOG_HOME" value="/home/sckw/logs/seata"/>
     <!-- 控制台输出 -->

+ 2 - 1
server/src/main/resources/logback-spring-test.xml

@@ -17,7 +17,8 @@
 
 <configuration scan="true" scanPeriod="60 seconds" debug="false">
     <!-- 定义日志文件的存储地址 -->
-    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>
+<!--    <springProperty scop="context" name="spring.application.name" source="spring.application.name" defaultValue=""/>-->
+    <springProperty scop="context" name="spring.application.name" source="logging.file.path" defaultValue=""/>
 <!--    <property name="LOG_HOME" value="F:logs/log/seata"/>-->
     <property name="LOG_HOME" value="/home/sckw/logs/seata"/>
     <!-- 控制台输出 -->