com.sun.enterprise.server.logging
Class SyslogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by com.sun.enterprise.server.logging.SyslogHandler
All Implemented Interfaces:
org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.PreDestroy

@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class SyslogHandler
extends java.util.logging.Handler
implements org.jvnet.hk2.component.PostConstruct, org.jvnet.hk2.component.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 Summary
SyslogHandler()
           
 
Method Summary
 void close()
           
 void flush()
           
 void log()
          Retrieves the LogRecord from our Queue and store them in the file
 void postConstruct()
           
 void preDestroy()
           
 void publish(java.util.logging.LogRecord record)
          Publishes the logrecord storing it in our queue
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyslogHandler

public SyslogHandler()
Method Detail

postConstruct

public void postConstruct()
Specified by:
postConstruct in interface org.jvnet.hk2.component.PostConstruct

preDestroy

public void preDestroy()
Specified by:
preDestroy in interface org.jvnet.hk2.component.PreDestroy

log

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


publish

public void publish(java.util.logging.LogRecord record)
Publishes the logrecord storing it in our queue

Specified by:
publish in class java.util.logging.Handler

close

public void close()
Specified by:
close in class java.util.logging.Handler

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler


Copyright © 2012 GlassFish Community. All Rights Reserved.