Author: psmith Date: Tue Apr 17 15:19:31 2007 New Revision: 529792 URL: http://svn.apache.org/viewvc?view=rev&rev=529792 Log: * Fixed up LoggingEvent constructor usage to comply with log4j 1.2. * Changed pom.xml to reference expression-filter project due to the LogFilePatternRecevier dependency on Rule schtuff
Modified: logging/sandbox/log4j/receivers/pom.xml logging/sandbox/log4j/receivers/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java Modified: logging/sandbox/log4j/receivers/pom.xml URL: http://svn.apache.org/viewvc/logging/sandbox/log4j/receivers/pom.xml?view=diff&rev=529792&r1=529791&r2=529792 ============================================================================== --- logging/sandbox/log4j/receivers/pom.xml (original) +++ logging/sandbox/log4j/receivers/pom.xml Tue Apr 17 15:19:31 2007 @@ -108,6 +108,11 @@ <version>0.1-SNAPSHOT</version> </dependency> <dependency> + <groupId>log4j</groupId> + <artifactId>apache-log4j-expression-filter</artifactId> + <version>0.1-SNAPSHOT</version> + </dependency> + <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> Modified: logging/sandbox/log4j/receivers/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java URL: http://svn.apache.org/viewvc/logging/sandbox/log4j/receivers/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java?view=diff&rev=529792&r1=529791&r2=529792 ============================================================================== --- logging/sandbox/log4j/receivers/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java (original) +++ logging/sandbox/log4j/receivers/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java Tue Apr 17 15:19:31 2007 @@ -755,16 +755,14 @@ info = LocationInfo.NA_LOCATION_INFO; } - LoggingEvent event = new LoggingEvent(); - event.setLogger(logger); - event.setTimeStamp(timeStamp); - event.setLevel(levelImpl); - event.setThreadName(threadName); - event.setMessage(message); - event.setThrowableInformation(new ThrowableInformation(exception)); - event.setLocationInformation(info); - event.setNDC(ndc); - event.setProperties(properties); + LoggingEvent event = new LoggingEvent(null, + logger, timeStamp, levelImpl, message, + threadName, + new ThrowableInformation(exception), + ndc, + info, + properties); + return event; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]