[英]printing DEBUG log in console, how to disable it
getting many debug printing in cosole how to disable it?在 cosole 中获得许多调试打印如何禁用它?
00:00:39.293 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Log4j2LoggerProvider 00:00:39.293 [main] DEBUG org.jboss.logging - 日志提供程序:org.jboss.logging.Log4j2LoggerProvider
tryed to write in app.properties logging.level.root=info
试图在 app.properties 中写入logging.level.root=info
and -Dlogging.level.org.springframework=INFO
in run/debug configuration->program arguments和-Dlogging.level.org.springframework=INFO
在运行/调试配置中 -> 程序 arguments
hibernate.cfg.xml hibernate.cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.url">jdbc:postgresql://localhost:5432/postgres</property>
<property name="connection.username">user</property>
<property name="connection.password">user</property>
<property name="connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.dialect">org.hibernate.dialect.PostgreSQL10Dialect</property>
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<mapping class="dmdev.lesson.entity.User"/>
<!-- DB schema will be updated if needed -->
<!-- <property name="hibernate.hbm2ddl.auto">update</property> -->
</session-factory>
</hibernate-configuration>
what im doing wrong?我做错了什么?
Looks like you are using JBoss;看起来您正在使用 JBoss; it uses Log4J as its logger.它使用 Log4J 作为记录器。
You will need to configure JBoss/Log4J to change the log level.您将需要配置 JBoss/Log4J 以更改日志级别。 That can be done through JBoss's CLI, Admin Page, or by modifying standalone.xml
.这可以通过 JBoss 的 CLI、管理页面或通过修改standalone.xml
来完成。
This links should help:此链接应该有所帮助:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.