From 670b2cb7640725309c5a779914062ecc190a9411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E7=8E=89=E6=A1=94?= Date: Wed, 25 Mar 2020 21:17:14 +0800 Subject: [PATCH] Improve standard output message in LogBase (#1357) --- .../java/com/alibaba/csp/sentinel/log/LogBase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java index 16641ffd..091ce15e 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/log/LogBase.java @@ -84,10 +84,10 @@ public class LogBase { if (!LOG_OUTPUT_TYPE_FILE.equalsIgnoreCase(logOutputType) && !LOG_OUTPUT_TYPE_CONSOLE.equalsIgnoreCase(logOutputType)) { logOutputType = LOG_OUTPUT_TYPE_FILE; } - System.out.println("INFO: log output type is: " + logOutputType); + System.out.println("INFO: Sentinel log output type is: " + logOutputType); logCharSet = properties.getProperty(LOG_CHARSET) == null ? logCharSet : properties.getProperty(LOG_CHARSET); - System.out.println("INFO: log charset is: " + logCharSet); + System.out.println("INFO: Sentinel log charset is: " + logCharSet); logBaseDir = properties.getProperty(LOG_DIR) == null ? logBaseDir : properties.getProperty(LOG_DIR); @@ -95,14 +95,14 @@ public class LogBase { File dir = new File(logBaseDir); if (!dir.exists()) { if (!dir.mkdirs()) { - System.err.println("ERROR: create log base dir error: " + logBaseDir); + System.err.println("ERROR: create Sentinel log base directory error: " + logBaseDir); } } - System.out.println("INFO: log base dir is: " + logBaseDir); + System.out.println("INFO: Sentinel log base directory is: " + logBaseDir); String usePid = properties.getProperty(LOG_NAME_USE_PID); logNameUsePid = "true".equalsIgnoreCase(usePid); - System.out.println("INFO: log name use pid is: " + logNameUsePid); + System.out.println("INFO: Sentinel log name use pid is: " + logNameUsePid); }