All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.logging.LogSyslog

java.lang.Object
   |
   +----com.ups.xmlsdk.util.logging.Logger
           |
           +----com.ups.xmlsdk.util.logging.LogSyslog

public class LogSyslog
extends Logger
UNIX Syslog logging class


Constructor Index

 o LogSyslog(String, int, String)
Construct a Syslog logger on the specified host, facility, and name.

Method Index

 o close()
 o log(LogContext, String, int, String, long)

Constructors

 o LogSyslog
 public LogSyslog(String host,
                  int localFacility,
                  String name) throws IOException
Construct a Syslog logger on the specified host, facility, and name. Syslog requires a local facility identifier from 0 to 7 which it uses to direct the message via its current config file (syslog.conf). It prefixes each record with a header that should contain an application name corresponding to the local facility. Note that Syslog's idea of a facility name is not necessarily our facility string, although by default we use it to initialize our base class facility.

Methods

 o close
 public void close() throws IOException
Overrides:
close in class Logger
 o log
 public final int log(LogContext context,
                      String facility,
                      int priority,
                      String msg,
                      long code) throws LogException
Overrides:
log in class Logger

All Packages  Class Hierarchy  This Package  Previous  Next  Index