|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
java.util.logging.StreamHandler
com.sun.enterprise.server.logging.GFFileHandler
@Service @Scoped(value=org.jvnet.hk2.component.Singleton.class) public class GFFileHandler
GFFileHandler publishes formatted log Messages to a FILE.
| Constructor Summary | |
|---|---|
GFFileHandler()
|
|
| Method Summary | |
|---|---|
void |
cleanUpHistoryLogFiles()
cleanup the history log file based on attributes set under logging.properties file". |
java.io.File |
getCurrentLogFile()
A simple getter to access the current log file written by this FileHandler. |
protected java.io.File |
getLogFileName()
|
void |
log()
5005 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 |
void |
rotate()
A Simple rotate method to close the old file and start the new one when the limit is reached. |
| Methods inherited from class java.util.logging.StreamHandler |
|---|
close, flush, isLoggable, setEncoding, setOutputStream |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GFFileHandler()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstructpublic void preDestroy()
preDestroy in interface org.jvnet.hk2.component.PreDestroypublic java.io.File getCurrentLogFile()
public void cleanUpHistoryLogFiles()
public void rotate()
public void log()
public void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.StreamHandlerprotected java.io.File getLogFileName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||