使用hibernate 4.2.2和slf4j 1.7.5
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>${slf4j.version}</version>
</dependency>
logging.properties中有org.hibernate.level=INFO
设置。
但是我得到了数以千计的日志行,例如:
16:15:00,179 DEBUG [RMI TCP Connection(3)-127.0.0.1] Loader:123 - Static select for entity...
如何摆脱DEBUG级日志消息?