You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ce...@apache.org on 2003/05/22 10:35:04 UTC
cvs commit: jakarta-log4j/src/java/org/apache/log4j/spi LoggingEvent.java
ceki 2003/05/22 01:35:04
Modified: src/java/org/apache/log4j/spi LoggingEvent.java
Log:
Modified LoggingEvent constructor to take a String array as the string representation of the throwable.
If the string array is null, then the throwableInfo member variable is left as null.
This follows the model used in the other constructors of LoggingEvent.
Changes to the log4j-sandbox to follow.
Revision Changes Path
1.40 +4 -3 jakarta-log4j/src/java/org/apache/log4j/spi/LoggingEvent.java
Index: LoggingEvent.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/spi/LoggingEvent.java,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- LoggingEvent.java 20 May 2003 15:08:08 -0000 1.39
+++ LoggingEvent.java 22 May 2003 08:35:04 -0000 1.40
@@ -275,15 +275,16 @@
public LoggingEvent(
String fqnOfCategoryClass, Category logger, long timeStamp,
Priority priority, String threadName, Object message, String ndc,
- Hashtable mdc, ThrowableInformation ti, LocationInfo li, Hashtable properties) {
+ Hashtable mdc, String[] throwableStrRep, LocationInfo li, Hashtable properties) {
ndcLookupRequired = false;
mdcCopyLookupRequired = false;
this.logger = logger;
this.categoryName = logger.getName();
this.level = priority;
this.message = message;
- this.throwableInfo = ti;
-
+ if(throwableStrRep != null) {
+ this.throwableInfo = new ThrowableInformation(throwableStrRep);
+ }
this.locationInfo = li;
this.fqnOfCategoryClass = fqnOfCategoryClass;
this.timeStamp = timeStamp;
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org