1 /** 2 * Logback: the reliable, generic, fast and flexible logging framework. 3 * 4 * Copyright (C) 1999-2006, QOS.ch 5 * 6 * This library is free software, you can redistribute it and/or modify it under 7 * the terms of the GNU Lesser General Public License as published by the Free 8 * 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 /** 16 * Echos the incoming object adding a line separator character(s) at the end. 17 * 18 * @author Ceki 19 */ 20 public class EchoLayout<E> extends LayoutBase<E> { 21 22 public String doLayout(E event) { 23 return event+CoreConstants.LINE_SEPARATOR; 24 } 25 26 }