|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SilverTraceLayout>
com.stratelia.silverpeas.silvertrace.SilverTraceLayout
public enum SilverTraceLayout
Layouts available for Silvertrace.
Enum Constant Summary | |
---|---|
LAYOUT_CUSTOM
A layout that can be defined by the user. |
|
LAYOUT_DETAILED
Detailed layout : Display "Time / Priority / Calling Class and module / Message" |
|
LAYOUT_FULL_DEBUG
Fully detailed layout : Display "Tic count / Time / Priority / Thread / Calling Class and module / Message" |
|
LAYOUT_HTML
HTML layout : Display "Time / Thread / Priority / Category / Message" into a TABLE |
|
LAYOUT_SHORT
Short layout : Display "Time / Priority / Message" |
|
LAYOUT_SPY
Fully detailed layout : Display "Time / Priority / Thread / Calling Class and module / Message" |
Method Summary | |
---|---|
static SilverTraceLayout |
findByPattern(String pattern)
|
static org.apache.log4j.Layout |
getLayout(String patternLayout)
|
String |
getPattern()
Returns the pattern associated with this layout. |
static SilverTraceLayout |
getSilverTraceLayout(String name)
To be used instead of valueOf since it manages the case of a custom pattern. |
void |
updatePattern(String customPattern)
Update the layout pattern. |
static SilverTraceLayout |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SilverTraceLayout[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SilverTraceLayout LAYOUT_SHORT
public static final SilverTraceLayout LAYOUT_HTML
public static final SilverTraceLayout LAYOUT_DETAILED
public static final SilverTraceLayout LAYOUT_FULL_DEBUG
public static final SilverTraceLayout LAYOUT_SPY
public static final SilverTraceLayout LAYOUT_CUSTOM
Method Detail |
---|
public static SilverTraceLayout[] values()
for (SilverTraceLayout c : SilverTraceLayout.values()) System.out.println(c);
public static SilverTraceLayout valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic void updatePattern(String customPattern)
customPattern
- public String getPattern()
public static SilverTraceLayout findByPattern(String pattern)
public static org.apache.log4j.Layout getLayout(String patternLayout)
public static SilverTraceLayout getSilverTraceLayout(String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |