No grammar
logback.xml 报警告
As will be demonstrated over and over, the syntax of logback configuration files is extremely flexible. As such, it is not possible to specify the allowed syntax with a DTD file or an XML schema.
可以添加下面这个去除警告
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xml>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xml> <configuration debug="true"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> <encoder> <pattern>%-4relative [%thread] %-5level %logger{35} - %msg %n</pattern> </encoder> </appender> <root level="TRACE"> <appender-ref ref="STDOUT" /> </root> </configuration>