想在fast中加入在外部打印log
想在外部打印log,需要在logback-spring.xml中加入那些内容~!
网上找的 各位可以参考一下
https://www.jb51.net/article/118849.htm
本帖标签:
renren-fast
-
2018-06-21
单独加一个appender 然后指定你想打印的目录就OK
-
2018-06-21
@小布丁
[pre]
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="TRACE" />
<!-- 开发、测试环境 -->
<springProfile name="dev,test">
<logger name="org.springframework.web" level="INFO"/>
<logger name="org.springboot.sample" level="INFO" />
<logger name="com.finance" level="DEBUG" />
</springProfile>
<!-- 生产环境 -->
<springProfile name="prod">
<logger name="org.springframework.web" level="ERROR"/>
<logger name="org.springboot.sample" level="ERROR" />
<logger name="com.finance" level="ERROR" />
</springProfile>
[/pre]
这块是干什么的 能和这个结合么
-
2018-06-25
这是配制的打印日志的级别,日志文件名,