Skip to content

Commit

Permalink
fix:Optimize the default log path configuration (#5251)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
youngzil authored Oct 26, 2024
1 parent 7ce173e commit ced6383
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apollo-assembly/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spring:

logging:
file:
name: /opt/logs/100003171/apollo-assembly.log
name: /opt/logs/apollo-assembly.log

management:
health:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
#Used for apollo-assembly
spring.application.name= apollo-configservice
server.port= 8080
logging.file.name= /opt/logs/100003171/apollo-configservice.log
logging.file.name= /opt/logs/apollo-configservice.log
spring.jmx.default-domain = apollo-configservice
2 changes: 1 addition & 1 deletion docs/en/contribution/apollo-development-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The initialization script for the MySQL database can be found in the scripts/sql
[apolloconfigdb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql)
[apolloportaldb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloportaldb.sql)

>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.
>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.
>
>-Dlogging.file.name=/your-path/apollo-assembly.log
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/contribution/apollo-development-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ mysql 数据库初始化脚本见 本项目 scripts/sql/profiles/mysql-default
[apolloconfigdb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloconfigdb.sql)
[apolloportaldb.sql](https://cdn.jsdelivr.net/gh/apolloconfig/apollo@master/scripts/sql/profiles/mysql-default/apolloportaldb.sql)

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

0 comments on commit ced6383

Please sign in to comment.