com.funambol.util
Class LogContent
java.lang.Object
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.
Constructor Summary |
LogContent(int contentType,
java.lang.String content)
Build a log container specifying the appender information |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
LogContent
public LogContent(int contentType,
java.lang.String content)
- Build a log container specifying the appender information
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.