Class SyslogHandler

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy

    @Service
    @Singleton
    @ContractsProvided({SyslogHandler.class,java.util.logging.Handler.class})
    public class SyslogHandler
    extends Handler
    implements org.glassfish.hk2.api.PostConstruct, org.glassfish.hk2.api.PreDestroy
    Created by IntelliJ IDEA. User: cmott Date: Mar 11, 2009 Time: 1:41:30 PM To change this template use File | Settings | File Templates.
    • Constructor Detail

      • SyslogHandler

        public SyslogHandler()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • preDestroy

        public void preDestroy()
        Specified by:
        preDestroy in interface org.glassfish.hk2.api.PreDestroy
      • log

        public void log()
        Retrieves the LogRecord from our Queue and store them in the file
      • publish

        public void publish​(LogRecord record)
        Publishes the logrecord storing it in our queue
        Specified by:
        publish in class Handler
      • close

        public void close()
        Specified by:
        close in class Handler
      • flush

        public void flush()
        Specified by:
        flush in class Handler
      • setSystemLogging

        public void setSystemLogging​(boolean systemLogging)