|
JBoss Log Manager 1.4.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SyslogHandler.SyslogType>
org.jboss.logmanager.handlers.SyslogHandler.SyslogType
public static enum SyslogHandler.SyslogType
The syslog type used for formatting the message.
| Enum Constant Summary | |
|---|---|
RFC3164
Formats the message according the the RFC-3164 specification (http://tools.ietf.org/html/rfc3164#section-4.1 |
|
RFC5424
Formats the message according the the RFC-5424 specification (http://tools.ietf.org/html/rfc5424#section-6 |
|
| Method Summary | |
|---|---|
protected static int |
calculatePriority(Level level,
SyslogHandler.Facility facility)
|
protected abstract String |
format(ExtLogRecord record,
SyslogHandler.Facility facility,
String hostname,
String pid,
String appName)
|
protected static void |
formatDate(SyslogHandler.SyslogType syslogType,
long millis,
StringBuilder buffer)
|
static SyslogHandler.SyslogType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SyslogHandler.SyslogType[] |
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 SyslogHandler.SyslogType RFC5424
public static final SyslogHandler.SyslogType RFC3164
| Method Detail |
|---|
public static SyslogHandler.SyslogType[] values()
for (SyslogHandler.SyslogType c : SyslogHandler.SyslogType.values()) System.out.println(c);
public static SyslogHandler.SyslogType 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 null
protected abstract String format(ExtLogRecord record,
SyslogHandler.Facility facility,
String hostname,
String pid,
String appName)
throws UnsupportedEncodingException
UnsupportedEncodingException
protected static int calculatePriority(Level level,
SyslogHandler.Facility facility)
protected static void formatDate(SyslogHandler.SyslogType syslogType,
long millis,
StringBuilder buffer)
|
JBoss Log Manager 1.4.1.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||