| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| protected static final String[] | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SyslogFormatter(final int
the facility constant facility)Constructor so that you can associate facility with formatter. |
| public | SyslogFormatter(final int
the facility code. facility, final boolean true if facility banner should be shown showFacilityBanner)Constructor allowing setting of facility and whether to show banner. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the formatted stringthe event event)Implements org. |
| protected String | Returns: the facility descriptionthe facility code facility)Retrieve description for facility. |
| protected int | Returns: the facility codethe log event event)Get facility associated with event. |
| protected int | Returns: the priority codethe log event event)Get syslog priority code for LogEvent. |
| FACILITY_AUTH | back to summary |
|---|---|
| public static final int FACILITY_AUTH | |
| FACILITY_AUTHPRIV | back to summary |
|---|---|
| public static final int FACILITY_AUTHPRIV | |
| FACILITY_CRON | back to summary |
|---|---|
| public static final int FACILITY_CRON | |
| FACILITY_DAEMON | back to summary |
|---|---|
| public static final int FACILITY_DAEMON | |
| FACILITY_DESCRIPTIONS | back to summary |
|---|---|
| protected static final String[] FACILITY_DESCRIPTIONS | |
| FACILITY_FTP | back to summary |
|---|---|
| public static final int FACILITY_FTP | |
| FACILITY_KERN | back to summary |
|---|---|
| public static final int FACILITY_KERN | |
| FACILITY_LOCAL0 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL0 | |
| FACILITY_LOCAL1 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL1 | |
| FACILITY_LOCAL2 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL2 | |
| FACILITY_LOCAL3 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL3 | |
| FACILITY_LOCAL4 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL4 | |
| FACILITY_LOCAL5 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL5 | |
| FACILITY_LOCAL6 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL6 | |
| FACILITY_LOCAL7 | back to summary |
|---|---|
| public static final int FACILITY_LOCAL7 | |
| FACILITY_LPR | back to summary |
|---|---|
| public static final int FACILITY_LPR | |
| FACILITY_MAIL | back to summary |
|---|---|
| public static final int FACILITY_MAIL | |
| FACILITY_NEWS | back to summary |
|---|---|
| public static final int FACILITY_NEWS | |
| FACILITY_SYSLOG | back to summary |
|---|---|
| public static final int FACILITY_SYSLOG | |
| FACILITY_USER | back to summary |
|---|---|
| public static final int FACILITY_USER | |
| FACILITY_UUCP | back to summary |
|---|---|
| public static final int FACILITY_UUCP | |
| m_facility | back to summary |
|---|---|
| private int m_facility | |
| m_showFacilityBanner | back to summary |
|---|---|
| private boolean m_showFacilityBanner | |
| PRIORITY_ALERT | back to summary |
|---|---|
| public static final int PRIORITY_ALERT | |
| PRIORITY_CRIT | back to summary |
|---|---|
| public static final int PRIORITY_CRIT | |
| PRIORITY_DEBUG | back to summary |
|---|---|
| public static final int PRIORITY_DEBUG | |
| PRIORITY_EMERG | back to summary |
|---|---|
| public static final int PRIORITY_EMERG | |
| PRIORITY_ERR | back to summary |
|---|---|
| public static final int PRIORITY_ERR | |
| PRIORITY_INFO | back to summary |
|---|---|
| public static final int PRIORITY_INFO | |
| PRIORITY_NOTICE | back to summary |
|---|---|
| public static final int PRIORITY_NOTICE | |
| PRIORITY_WARNING | back to summary |
|---|---|
| public static final int PRIORITY_WARNING | |
| SyslogFormatter | back to summary |
|---|---|
| public SyslogFormatter() Constructor that assumes FACILITY_USER. | |
| SyslogFormatter | back to summary |
|---|---|
| public SyslogFormatter(final int facility) Constructor so that you can associate facility with formatter.
| |
| SyslogFormatter | back to summary |
|---|---|
| public SyslogFormatter(final int facility, final boolean showFacilityBanner) Constructor allowing setting of facility and whether to show banner.
| |
| format | back to summary |
|---|---|
| public String format(final LogEvent event) Implements org. Format log event into syslog string. | |
| getFacilityDescription | back to summary |
|---|---|
| protected String getFacilityDescription(final int facility) Retrieve description for facility.
| |
| getSyslogFacility | back to summary |
|---|---|
| protected int getSyslogFacility(final LogEvent event) Get facility associated with event. Default implementation returns facility set in constructor.
| |
| getSyslogPriority | back to summary |
|---|---|
| protected int getSyslogPriority(final LogEvent event) Get syslog priority code for LogEvent. This is done by translating LogKit priority to syslog priority.
| |