logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: cvs commit: logging-log4j/src/java/org/apache/log4j/xml/test DOMTest.java
Date Sun, 09 May 2004 19:31:44 GMT
Hello all,

With this commit, I added a properties support in LoggerRepository. It
is not possible to set a property at the repository level such that it
is shared by all events generated by that repository.

I also merged MDC properties and LoggerRepository properties into one
at the LoggerEvent level. The LoggingEvent.getMDCKeySet and
LoggingEvent.getMDC(String) methods have been replaced by the more
general LoggingEvent.getPropertyKeySet and
LoggingEvent.getProperty(String) methods.

XMLLayout no longer outputs a <log4j:MDC> element. Its contents have
been merged with <log4j:properties> element.

Thus, your code no longer needs to worry about whether a property is
set in the MDC or elsewhere.

As a result of these changes, chainsaw code no longer compiles. I did
not want to mess with chainsaw code.

At 08:37 PM 5/9/2004, ceki@apache.org wrote:
>ceki        2004/05/09 11:37:57
>   Modified:    src/java/org/apache/log4j/spi LoggingEventFieldResolver.java
>                         LoggerRepository.java LoggingEvent.java
>                src/java/org/apache/log4j Hierarchy.java MDC.java
>                         AsyncAppender.java Category.java
>                src/java/org/apache/log4j/pattern
>                         RelativeTimePatternConverter.java
>                         DatePatternConverter.java
>                         PropertiesPatternConverter.java PatternParser.java
>                src/java/org/apache/log4j/chainsaw
>                         ChainsawCyclicBufferTableModel.java
>                         ChainsawAppenderHandler.java ColumnComparator.java
>                .        build.xml
>                src/java/org/apache/log4j/test MDCStress.java
>                         PatternTest.java CategoryWrapper.java FQCNTest.java
>                src/java/org/apache/log4j/helpers DateLayout.java
>                tests/src/java/org/apache/log4j/net
>                         SocketServerTestCase.java
>                src/java/org/apache/log4j/db/dialect mysql.sql oracle.sql
>                         postgresql.sql
>                src/java/org/apache/log4j/nt/test NTMin.java
>                src/java/org/apache/log4j/lf5 LF5Appender.java
>                tests/src/java/org/apache/log4j/helpers
>                         BoundedFIFOTestCase.java CyclicBufferTestCase.java
>                src/java/org/apache/log4j/net/test SMTPMin.java
>                         SocketMin.java SyslogMin.java
>                src/java/org/apache/log4j/xml XMLLayout.java
>                src/java/org/apache/log4j/chainsaw/receivers
>                         ReceiversTreeModel.java
>                src/java/org/apache/log4j/chainsaw/layout
>                         EventDetailLayout.java
>                src/java/org/apache/log4j/xml/test DOMTest.java
>   Removed:     src/java/org/apache/log4j/pattern MDCPatternConverter.java
>   Log:
>   - Added a properties map to LoggerRepository
>   - Merged MDC properties and LoggerRepository properties into a single
>   property map in LoggingEvent. As such, the MDC related get/set
>    properties methods have been removed.
>   - All fields of LoggingEvent now have setters. The complicated
>   constructors required to create a LoggingEvent in one shot are now 
> deprecated.

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  

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

View raw message