| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.nucleus.logging.DisplayLogger
atg.nucleus.logging.FileLogger
public class FileLogger
This log listener writes the logged events directly out to the configured log file.
| Field Summary | |
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string  | 
 java.lang.String | 
mLogFileName
The name of the log file.  | 
 java.io.File | 
mLogFilePath
The file path to the log file (filename not included).  | 
| Fields inherited from class atg.nucleus.GenericService | 
|---|
SERVICE_INFO_KEY | 
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging | 
|---|
DEFAULT_LOG_TRACE_STATUS | 
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging | 
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS | 
| Constructor Summary | |
|---|---|
FileLogger()
Constructs a FileLogger.  | 
|
| Method Summary | |
|---|---|
 void | 
close()
Closes the log media cleanly (if applicable).  | 
 void | 
doStartService()
This is called after the service has been created, added to the Registry, and configured.  | 
 void | 
doStopService()
This is called when the service is to be stopped.  | 
 void | 
flush()
Flushes the log media (if applicable).  | 
 java.lang.String | 
getLogFileName()
Returns the name of the log file.  | 
 java.io.File | 
getLogFilePath()
Returns the complete path to the log file (filename not included).  | 
 void | 
open()
Opens the log media for writing to (if applicable).  | 
 void | 
setLogFileName(java.lang.String pLogFileName)
Sets the name of the log file.  | 
 void | 
setLogFilePath(java.io.File pLogFilePath)
Sets the complete path to the log file (filename not included).  | 
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl | 
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static java.lang.String CLASS_VERSION
public java.lang.String mLogFileName
public java.io.File mLogFilePath
| Constructor Detail | 
|---|
public FileLogger()
| Method Detail | 
|---|
public void setLogFileName(java.lang.String pLogFileName)
pLogFileName - the log file namepublic void setLogFilePath(java.io.File pLogFilePath)
pLogFilePath - the log file pathpublic java.lang.String getLogFileName()
public java.io.File getLogFilePath()
public void doStartService()
                    throws ServiceException
doStartService in class GenericServiceServiceException - if an error occurred during the operation
public void doStopService()
                   throws ServiceException
doStopService in class GenericServiceServiceException - if an error occurred during the operation
public void open()
          throws java.io.IOException
java.io.IOException
public void close()
           throws java.io.IOException
java.io.IOException
public void flush()
           throws java.io.IOException
java.io.IOException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||