Yep, the output methods are overloaded to take either one or two parameters.
I always have the first one as a string, and the second one (id there is
one) as an exception. Here is example output:
One argument
2003-08-21 10:57:18,708 [ExecuteThread: '9' for queue: 'default'] DEBUG
(AssetDetail.java:34) - Got create asset detail statement...
Two arguments
2003-08-21 10:57:19,702 [ExecuteThread: '9' for queue: 'default'] FATAL
(AssetDetail.java:44) - Error in createAssetDetail
java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error: character
string buffer too small
ORA-06512: at "KEY_ASSIST.AE_ASSET_EVENT_INTERFACE", line 13
ORA-06512: at line 1
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1093)
at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2047
)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1940)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2709)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:589)
at
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.j
ava:656)
at weblogic.jdbc.jts.Statement.execute(Statement.java:485)
at
weblogic.jdbc.rmi.internal.PreparedStatementImpl.execute(PreparedStatementIm
pl.java:358)
at
weblogic.jdbc.rmi.SerialPreparedStatement.execute(SerialPreparedStatement.ja
va:401)
at
uk.co.cpp.npp.asset.AssetDetail.createAssetDetail(AssetDetail.java:40)
at
uk.co.cpp.npp.asset.NppAssetManagementBean.createAssetDetail(NppAssetManagem
entBean.java:471)
at
uk.co.cpp.npp.asset.NppAssetManagementBean_1ad05n_EOImpl.createAssetDetail(N
ppAssetManagementBean_1ad05n_EOImpl.java:1166)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.webservice.component.slsb.SLSBInvocationHandler.invoke(SLSBInvocati
onHandler.java:84)
at
weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.j
ava:78)
at
weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
at
weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:539)
at
weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.java:264
)
at
weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase.
java:362)
at
weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebSer
viceServlet.java:269)
at
weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:346)
at
weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServle
t.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:1058)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:401)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:306)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5412)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:744)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3086)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
-----Original Message-----
From: Thomas Muller [mailto:[EMAIL PROTECTED]
Sent: 29 August 2003 15:28
To: Log4J Users List
Subject: RE: how do I log an exception stacktrace
...
} catch( Exception e ) {
logger.debug( e.getMessage(), e );
}
...
--
Thomas
| -----Original Message-----
| From: Andreas Bothner [ MTN - Innovation Centre ]
| [mailto:[EMAIL PROTECTED]
| Sent: 29 August 2003 14:55
| To: Log4J Users List
| Subject: how do I log an exception stacktrace
|
|
| Hi,
|
| I apologize if this is a stupid question, but how would I log out an
| exception's stacktrace using logger.debug() ?
|
| Regards,
| Andreas Bothner
| Systems Integrator
|
|
| NOTE: This e-mail message is subject to the MTN Group disclaimer
| see http://www.mtn.co.za/email_disclaimer.asp
|
| ---------------------------------------------------------------------
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
*************************************************************************
Copyright ERA Technology Ltd. 2003. (www.era.co.uk). All rights reserved.
The information supplied in this Commercial Communication should be treated
in confidence.
No liability whatsoever is accepted for any loss or damage
suffered as a result of accessing this message or any attachments.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
This is an email from the CPP Group Plc, Holgate Park, York, YO26 4GA; telephone 01904
544500. This message may contain information that is confidential. If you are not the
intended recipient, you may not peruse, use, disseminate, distribute or copy this
message. If you have received this message in error, please notify the sender
immediately by email, facsimile or telephone and either return or destroy the original
message. The CPP Group Plc accepts no responsibility for any changes made to this
message after it has been sent by the original author.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]