Skip to content

Commit e4fb68c

Browse files
committed
添加控制台输出请求日志配置属性
1 parent 2a53033 commit e4fb68c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/logging/ApiBootLoggingAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public LoggingBodyFilter apiBootLoggingFilter() {
146146
*/
147147
@Bean
148148
public LoggingNoticeListener apiBootLoggingNoticeListener(LoggingStorageNotice loggingStorageNotice) {
149-
return new LoggingNoticeListener(loggingStorageNotice, apiBootLoggingProperties.isFormatConsoleLogJson());
149+
return new LoggingNoticeListener(loggingStorageNotice, apiBootLoggingProperties.isFormatConsoleLogJson(), apiBootLoggingProperties.isShowConsoleLog());
150150
}
151151

152152

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/logging/ApiBootLoggingProperties.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public class ApiBootLoggingProperties {
5555
* Format console log JSON
5656
*/
5757
private boolean formatConsoleLogJson = false;
58+
/**
59+
* show console log
60+
*/
61+
private boolean showConsoleLog = false;
5862
/**
5963
* Report Request Log To Admin Away
6064
*/

0 commit comments

Comments
 (0)