1   /**
2    * LOGBack: the reliable, fast and flexible logging library for Java.
3    *
4    * Copyright (C) 1999-2006, QOS.ch
5    *
6    * This library is free software, you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public License as
8    * published by the Free Software Foundation.
9    */
10  package ch.qos.logback.core.layout;
11  
12  import ch.qos.logback.core.CoreConstants;
13  import ch.qos.logback.core.LayoutBase;
14  
15  public class DummyLayout<E> extends LayoutBase<E> {
16  
17    public static final String DUMMY = "dummy"+CoreConstants.LINE_SEPARATOR;
18    String val = DUMMY;
19    
20    public DummyLayout() {
21    }
22    
23    public DummyLayout(String val) {
24      this.val = val;
25    }
26    
27    public String doLayout(E event) {
28      return val;
29    }
30  
31    
32  }