1 /** 2 * Logback: the generic, reliable, fast and flexible logging framework. 3 * 4 * Copyright (C) 2000-2008, 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.pattern; 11 12 public final class LiteralConverter<E> extends Converter<E> { 13 14 String literal; 15 16 public LiteralConverter(String literal) { 17 this.literal = literal; 18 } 19 20 public String convert(E o) { 21 return literal; 22 } 23 24 25 }