Skip to content

Commit ced6383

Browse files
authored
fix:Optimize the default log path configuration (#5251)
* fix: 1. Optimize the default log path configuration 2. Fixed the error that the log file does not exist when starting locally * fix:revert logging.file.path parameter * refactor: Modify the log file path
1 parent 7ce173e commit ced6383

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apollo-assembly/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spring:
3030

3131
logging:
3232
file:
33-
name: /opt/logs/100003171/apollo-assembly.log
33+
name: /opt/logs/apollo-assembly.log
3434

3535
management:
3636
health:

apollo-configservice/src/main/resources/configservice.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
#Used for apollo-assembly
1717
spring.application.name= apollo-configservice
1818
server.port= 8080
19-
logging.file.name= /opt/logs/100003171/apollo-configservice.log
19+
logging.file.name= /opt/logs/apollo-configservice.log
2020
spring.jmx.default-domain = apollo-configservice

docs/en/contribution/apollo-development-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The initialization script for the MySQL database can be found in the scripts/sql
7575
[apolloconfigdb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql)
7676
[apolloportaldb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloportaldb.sql)
7777

78-
>Note 3: The default log output of the program is /opt/logs/100003171/apollo-assembly.log, if you need to modify the log file path, you can add the `logging.file.name` parameter, as follows.
78+
>Note 3: The default log output of the program is /opt/logs/apollo-assembly.log, if you need to modify the log file path, you can add the `logging.file.name` parameter, as follows.
7979
>
8080
>-Dlogging.file.name=/your-path/apollo-assembly.log
8181

docs/zh/contribution/apollo-development-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ mysql 数据库初始化脚本见 本项目 scripts/sql/profiles/mysql-default
6666
[apolloconfigdb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql)
6767
[apolloportaldb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloportaldb.sql)
6868

69-
>注3:程序默认日志输出为/opt/logs/100003171/apollo-assembly.log,如果需要修改日志文件路径,可以增加`logging.file.name`参数,如下:
69+
>注3:程序默认日志输出为/opt/logs/apollo-assembly.log,如果需要修改日志文件路径,可以增加`logging.file.name`参数,如下:
7070
>
7171
>-Dlogging.file.name=/your-path/apollo-assembly.log
7272

0 commit comments

Comments
 (0)