logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Hide *.jar
Date Mon, 29 Jun 2015 15:27:12 GMT
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.

Ralph

> On Jun 29, 2015, at 7:45 AM, Emi Lu <emilu@encs.concordia.ca> wrote:
> 
> Hello List,
> 
> May I know how to hide the following *.jar info please?
> 
>    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.
> 
> Thanks a lot!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 



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


Mime
View raw message