- All Implemented Interfaces:
Serializable
,Comparable<ColumnLayout>
,Constable
Predefined layouts passed to logger implementation supporting
ColumnLayout
modes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAll information is displayed, no information is cut off, an analyst might like it though it does not please your eyes any more.Similar toGRANDPA
though even with more information omitted (makes each log line fit on one console line).Some technical details may be omitted when logging.Some technical details may be omitted when logging though theCorrelation.SESSION
TID and theCorrelation.REQUEST
TID must not be omitted.Most technical details may be omitted, focus is the logging of human targeted information such a person using a command line tool which prints out some nicely formatted status information.A fallback layout trying to log most available information with taking information loss into account.Some technical details may be omitted when logging, though the messages are not truncated.Some default layout is choosen.All available information is to be logged with minimal information loss. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnLayout
toColumnLayout
(String aValue) Case insensitive convenience method for converting aString
to an according enumeration.org.refcodes.textual.ColumnSetupMetrics[]
Creates theColumnSetupMetrics
for the actual enumeration instance.static ColumnLayout
Returns the enum constant of this class with the specified name.static ColumnLayout[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Some default layout is choosen. -
SUPERUSER
All available information is to be logged with minimal information loss. A superuser or administrator might like this layout. -
GRANDPA
A fallback layout trying to log most available information with taking information loss into account. You might like this in case you have a terminal width less thanConsoleDimension.NORM_WIDTH
. This layout might be chosen automatically in case the column width is not sufficient for the other layouts. -
BASIC
Similar toGRANDPA
though even with more information omitted (makes each log line fit on one console line). -
DEVELOPER
Some technical details may be omitted when logging. Focus is the logging of development targeted information (such as method names or line numbers). -
HACKER
Some technical details may be omitted when logging, though the messages are not truncated. -
DEVOPS
Some technical details may be omitted when logging though theCorrelation.SESSION
TID and theCorrelation.REQUEST
TID must not be omitted. Focus is the logging of communication targeted information (such as the correlation IDs). -
ENDUSER
Most technical details may be omitted, focus is the logging of human targeted information such a person using a command line tool which prints out some nicely formatted status information. -
ANALYST
All information is displayed, no information is cut off, an analyst might like it though it does not please your eyes any more.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toColumnSetupMetrics
public org.refcodes.textual.ColumnSetupMetrics[] toColumnSetupMetrics()Creates theColumnSetupMetrics
for the actual enumeration instance.- Returns:
- The
ColumnSetupMetrics
array in question.
-
toColumnLayout
Case insensitive convenience method for converting aString
to an according enumeration.- Parameters:
aValue
- TheString
to be converted.- Returns:
- The according enumeration or null if the provided value is unknown.
-