JHipster-日志文件 [英] JHipster - Log Files
本文介绍了JHipster-日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个正在运行的JHipster应用程序,我想知道日志文件在哪里.它们是在哪里产生的? (这是一个新手问题,但找不到任何东西)
I have a JHipster application running and I would like to know where are the logs files. Where are they generated ? (It's a newbie question, but can't find anything)
我使用默认配置在"Dev"配置文件中. (未更改application-dev.yml的任何内容)
I am on the "Dev" profile with the default configuration. (Didn't change anything regarding the application-dev.yml)
谢谢.
推荐答案
好,
因此,这里的答案是:
在资源目录中可以找到一个XML文件 logback.xml .
There is a xml file logback.xml that you can find in the resources directory.
控制台配置:
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>utf-8</charset>
<Pattern>[%p] %c - %m%n</Pattern>
</encoder>
</appender>
用于文件
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
...
</appender>
在文件末尾引用
<root level="${logback.loglevel}">
<appender-ref ref="CONSOLE"/> <!-- For Console Log -->
<appender-ref ref="FILE"/> <!-- For File Log -->
</root>
这篇关于JHipster-日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文