com.funambol.util
Class LogContent

java.lang.Object
  extended by com.funambol.util.LogContent

public class LogContent
extends java.lang.Object

Log Container class. Holds the properties of the log appender which belongs to and the references the log content. This class can be used by all log appenders.


Field Summary
static int FILE_CONTENT
           
static int STRING_CONTENT
           
 
Constructor Summary
LogContent(int contentType, java.lang.String content)
          Build a log container specifying the appender information
 
Method Summary
 java.lang.String getContent()
           
 int getContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_CONTENT

public static final int FILE_CONTENT
See Also:
Constant Field Values

STRING_CONTENT

public static final int STRING_CONTENT
See Also:
Constant Field Values
Constructor Detail

LogContent

public LogContent(int contentType,
                  java.lang.String content)
Build a log container specifying the appender information

Method Detail

getContentType

public int getContentType()
Returns:
the content type. Possible values are:
  • FILE_CONTENT if the content is in a file
  • STRING_CONTENT if the content is inlined

getContent

public java.lang.String getContent()
Returns:
the log content as a formatted string. Depending on the content type the value returned may represent a filename or the inlined log content. This method can return null if the content type is NULL_CONTENT


Copyright © 2001-2009 Funambol.