Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2011, QOS.ch. All rights reserved. This program and the accompanying materials are dual-licensed under either the terms of the Eclipse Public License v1.0 as published by the Eclipse Foundation or (per the licensee's choosing) under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.
package ch.qos.logback.core;
public interface Layout<E> extends ContextAwareLifeCycle {
  
  
Transform an event (of type Object) and return it as a String after appropriate formatting.

Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.

Parameters:
event The event to format
Returns:
the event formatted as a String
  String doLayout(E event);
  
  
Return the file header for this layout. The returned value may be null.

Returns:
The header.
Return the header of the logging event formatting. The returned value may be null.

Returns:
The header.
Return the footer of the logging event formatting. The returned value may be null.

Returns:
The footer.
  
Return the file footer for this layout. The returned value may be null.

Returns:
The footer.
  String getFileFooter();
  
  
Returns the content type as appropriate for the implementation.

Returns:
  
New to GrepCode? Check out our FAQ X