01: /*
02: This software is OSI Certified Open Source Software.
03: OSI Certified is a certification mark of the Open Source Initiative.
04:
05: The license (Mozilla version 1.0) can be read at the MMBase site.
06: See http://www.MMBase.org/license
07:
08: */
09:
10: package org.mmbase.util.logging.log4j;
11:
12: import org.apache.log4j.*;
13: import org.apache.log4j.helpers.PatternParser;
14:
15: /**
16: * @see MMPatternParser
17: * @author Michiel Meeuwissen
18: * @since MMBase-1.6
19: * @version $Id: MMPatternLayout.java,v 1.3 2006/01/02 13:27:52 michiel Exp $
20: */
21: public class MMPatternLayout extends PatternLayout {
22: public MMPatternLayout() {
23: this (DEFAULT_CONVERSION_PATTERN);
24: }
25:
26: public MMPatternLayout(String pattern) {
27: super (pattern);
28: }
29:
30: public PatternParser createPatternParser(String pattern) {
31: return new MMPatternParser(
32: pattern == null ? DEFAULT_CONVERSION_PATTERN : pattern);
33: }
34:
35: }
|