Class SyslogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- com.sun.enterprise.server.logging.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 Summary
Constructors Constructor Description SyslogHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
log()
Retrieves the LogRecord from our Queue and store them in the filevoid
postConstruct()
void
preDestroy()
void
publish(LogRecord record)
Publishes the logrecord storing it in our queuevoid
setSystemLogging(boolean systemLogging)
-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
-
preDestroy
public void preDestroy()
- Specified by:
preDestroy
in interfaceorg.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
-
setSystemLogging
public void setSystemLogging(boolean systemLogging)
-
-