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