Class SyslogDefs
- java.lang.Object
-
- org.pentaho.di.job.entries.syslog.SyslogDefs
-
public class SyslogDefs extends Object
This defines settings for Syslog.- Since:
- 05-01-2010
- Author:
- Samatar
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_DATE_FORMAT
static int
DEFAULT_PORT
static String
DEFAULT_PROTOCOL_UDP
static String[]
FACILITYS
static String[]
PRIORITYS
-
Constructor Summary
Constructors Constructor Description SyslogDefs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
DEFAULT_PROTOCOL_UDP
public static final String DEFAULT_PROTOCOL_UDP
- See Also:
- Constant Field Values
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATE_FORMAT
- See Also:
- Constant Field Values
-
FACILITYS
public static final String[] FACILITYS
-
PRIORITYS
public static final String[] PRIORITYS
-
-
Method Detail
-
computeCode
public static int computeCode(int facility, int priority)
-
getPriority
public static int getPriority(String priority) throws SyslogException
- Throws:
SyslogException
-
getFacility
public static int getFacility(String facility) throws SyslogException
- Throws:
SyslogException
-
-