Can you post the full output of the log event?

Ralph

> On Jun 29, 2015, at 8:45 AM, Emi Lu <em...@encs.concordia.ca> wrote:
> 
> 
>> This is an excerpt from a stack trace.
>> 
>> Assuming it is coming from a log message (you don’t actually have enough 
>> below to know for sure), then to filter specific packages from the stack 
>> trace you would need to use the filters keyword on the rEx or xEx converters 
>> in the PatternLayout.  If you simply don’t want to see exceptions from 
>> hibernate then you need to look at the class that is logging them and filter 
>> that.
> Tried:
> <RegexFilter regex="org.hibernate.*" onMatch="DENY" onMismatch="ACCEPT" />
> 
> But did not work. Do you have an example?
> 
> Thanks a lot!
>> to hide the following *.jar info?
>> 
>>    at 
>> org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:123)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at 
>> org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at 
>> org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at 
>> org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at 
>> org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:91)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.getResultSet(Loader.java:2066) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1863) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1839) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.doQuery(Loader.java:910) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at 
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:355)
>>  ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.doList(Loader.java:2554) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>>    at org.hibernate.loader.Loader.doList(Loader.java:2540) 
>> ~[hibernate-core-4.3.8.Final.jar:4.3.8.Final]
>> 
>> Tried:
>>   <Logger name="org.hibernate"     level="FATAL" additivity="false">
>>      <AppenderRef ref="sql_log"    />
>>   </Logger>
>> 
>> But they are still shown in log file.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to