springboot使用logback输出日志








<configuration scan="true" scanPeriod="60 second" debug="false">
    <contextName>logbackcontextName>
     
    <springProperty scope="context" name="logPath" source="logs.path" defaultValue="${manage.home:-/TMP}"/>
    <springProperty scope="context" name="logName" source="logs.name" defaultValue="${manage.name:-defautl-name}"/>
    <property name="LOG_HOME" value="${logPath}"/>
    <property name="LOG_NAME" value="${logName}"/>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    
   
	
    <property name="LOG_PATTERN" value="%date{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
    
    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"<

你可能感兴趣的:(spring系列,spring,boot,logback)