KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > util > logging > log4j > MMPatternLayout


1 /*
2 This software is OSI Certified Open Source Software.
3 OSI Certified is a certification mark of the Open Source Initiative.
4
5 The license (Mozilla version 1.0) can be read at the MMBase site.
6 See http://www.MMBase.org/license
7
8 */

9
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 JavaDoc pattern) {
27     super(pattern);
28   }
29     
30   public PatternParser createPatternParser(String JavaDoc pattern) {
31     return new MMPatternParser(
32       pattern == null ? DEFAULT_CONVERSION_PATTERN : pattern);
33   }
34   
35 }
36
Popular Tags