zouxuan před 1 rokem
rodič
revize
579951c880

+ 7 - 7
cooleshow-app/src/main/resources/logback-spring.xml

@@ -5,11 +5,11 @@
 	<property name="CONSOLE_LOG_PATTERN"
 		value="[%X{username} %X{ip} %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}] : %msg%n" />
 
-	<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
+	<!--<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
 		<encoder charset="UTF-8">
 			<pattern>${CONSOLE_LOG_PATTERN}</pattern>
 		</encoder>
-	</appender>
+	</appender>-->
 
 	<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
 		<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
@@ -39,28 +39,28 @@
 	<!--本地环境:打印控制台 -->
 	<springProfile name="local">
 		<root level="INFO">
-			<appender-ref ref="stdout" />
+<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>
 	<!--开发环境:打印控制台 -->
 	<springProfile name="dev">
 		<root level="INFO">
-			<appender-ref ref="stdout" />
+<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>
 	
 	<springProfile name="test">
 		<root level="INFO">
-			<appender-ref ref="stdout" />
+<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 		</root>
 	</springProfile>
 
 	<springProfile name="pre">
 		<root level="INFO">
-			<appender-ref ref="stdout" />
+<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>
@@ -69,7 +69,7 @@
 	<!--生产环境:输出到文件 -->
 	<springProfile name="prod">
 		<root level="INFO">
-			<appender-ref ref="stdout" />
+<!--			<appender-ref ref="stdout" />-->
 			<appender-ref ref="file" />
 			<appender-ref ref="plumelog" />
 		</root>