Class Syslog


  • public class Syslog
    extends java.lang.Object

    A class to private remote logging via the BSD syslog service (UDP on port 514).

    To get a syslogd to listen to port 514 packets, one needs to start it with a specific option, e.g. "-r" on Linux or Solaris, or "-u" on MacOSX prior to Panther, or without the "-s" after Panther. On Linux one edits the options in "/etc/sysconfig/syslog" and does an "/etc/rc.d/init.d/syslog restart".

    • Constructor Summary

      Constructors 
      Constructor Description
      Syslog​(java.lang.String host)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getFacilityByName​(java.lang.String s)  
      int getPriorityByName​(java.lang.String s)  
      static void main​(java.lang.String[] arg)
      Testing.
      void send​(int facility, int priority, java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait