Class Syslog
- java.lang.Object
-
- com.sun.enterprise.server.logging.Syslog
-
public class Syslog extends Object
this code is taken from spy.jar and enhanced User: cmott
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALERT
static int
AUTH
static int
AUTHPRIV
static int
CRIT
static int
CRON
static int
DAEMON
static int
DEBUG
static int
EMERG
static int
ERR
static int
FTP
static int
INFO
static int
KERN
static int
LOCAL0
static int
LOCAL1
static int
LOCAL2
static int
LOCAL3
static int
LOCAL4
static int
LOCAL5
static int
LOCAL6
static int
LOCAL7
static int
LPR
static int
MAIL
static int
NEWS
static int
NOTICE
static int
SYSLOG
static int
USER
static int
UUCP
static int
WARNING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
log(int facility, int level, String msg)
Send a log message.
-
-
-
Field Detail
-
EMERG
public static final int EMERG
- See Also:
- Constant Field Values
-
ALERT
public static final int ALERT
- See Also:
- Constant Field Values
-
CRIT
public static final int CRIT
- See Also:
- Constant Field Values
-
ERR
public static final int ERR
- See Also:
- Constant Field Values
-
WARNING
public static final int WARNING
- See Also:
- Constant Field Values
-
NOTICE
public static final int NOTICE
- See Also:
- Constant Field Values
-
INFO
public static final int INFO
- See Also:
- Constant Field Values
-
DEBUG
public static final int DEBUG
- See Also:
- Constant Field Values
-
KERN
public static final int KERN
- See Also:
- Constant Field Values
-
USER
public static final int USER
- See Also:
- Constant Field Values
-
MAIL
public static final int MAIL
- See Also:
- Constant Field Values
-
DAEMON
public static final int DAEMON
- See Also:
- Constant Field Values
-
AUTH
public static final int AUTH
- See Also:
- Constant Field Values
-
SYSLOG
public static final int SYSLOG
- See Also:
- Constant Field Values
-
LPR
public static final int LPR
- See Also:
- Constant Field Values
-
NEWS
public static final int NEWS
- See Also:
- Constant Field Values
-
UUCP
public static final int UUCP
- See Also:
- Constant Field Values
-
CRON
public static final int CRON
- See Also:
- Constant Field Values
-
AUTHPRIV
public static final int AUTHPRIV
- See Also:
- Constant Field Values
-
FTP
public static final int FTP
- See Also:
- Constant Field Values
-
LOCAL0
public static final int LOCAL0
- See Also:
- Constant Field Values
-
LOCAL1
public static final int LOCAL1
- See Also:
- Constant Field Values
-
LOCAL2
public static final int LOCAL2
- See Also:
- Constant Field Values
-
LOCAL3
public static final int LOCAL3
- See Also:
- Constant Field Values
-
LOCAL4
public static final int LOCAL4
- See Also:
- Constant Field Values
-
LOCAL5
public static final int LOCAL5
- See Also:
- Constant Field Values
-
LOCAL6
public static final int LOCAL6
- See Also:
- Constant Field Values
-
LOCAL7
public static final int LOCAL7
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Syslog
public Syslog(String loghost) throws UnknownHostException
Log to a particular log host.- Throws:
UnknownHostException
-
-
Method Detail
-
log
public void log(int facility, int level, String msg)
Send a log message.
-
-