public class SyslogDefs extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_DATE_FORMAT  | 
static int | 
DEFAULT_PORT  | 
static String | 
DEFAULT_PROTOCOL_UDP  | 
static String[] | 
FACILITYS  | 
static String[] | 
PRIORITYS  | 
| Constructor and Description | 
|---|
SyslogDefs()  | 
| Modifier and Type | Method and Description | 
|---|---|
static int | 
computeCode(int facility,
           int priority)  | 
static int | 
getFacility(String facility)  | 
static int | 
getPriority(String priority)  | 
static void | 
sendMessage(org.productivity.java.syslog4j.SyslogIF syslog,
           int priority,
           String message,
           boolean addTimestamp,
           String pattern,
           boolean addHostName)  | 
public static final String DEFAULT_PROTOCOL_UDP
public static final int DEFAULT_PORT
public static final String DEFAULT_DATE_FORMAT
public static final String[] FACILITYS
public static final String[] PRIORITYS
public static int computeCode(int facility,
              int priority)
public static int getPriority(String priority) throws SyslogException
SyslogExceptionpublic static int getFacility(String facility) throws SyslogException
SyslogException