© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com

com.bitfactoryinc.logging
Class FileLogger

java.lang.Object
  |
  +--com.bitfactoryinc.logging.Logger
        |
        +--com.bitfactoryinc.logging.FileLogger

public class FileLogger
extends Logger

Instances of this class write out LogEntries to a file


Field Summary
private  java.lang.String fileName
           
 
Fields inherited from class com.bitfactoryinc.logging.Logger
application, defaultFilterClass, defaultFormatterClass, enabled, filter, formatter
 
Constructor Summary
FileLogger()
           
FileLogger(java.lang.String aFileName)
           
 
Method Summary
private  java.io.FileWriter createFileWriter()
           
 java.lang.String getFileName()
           
private  java.io.FileWriter getFileWriter()
          Return a FileWriter.
 void setFileName(java.lang.String newFileName)
           
protected  boolean writeToLog(java.lang.String s)
          Write the String to the file.
 
Methods inherited from class com.bitfactoryinc.logging.Logger
doLog, getApplication, getDefaultFilterClass, getDefaultFormatterClass, getFilter, getFormatter, getSeverityThreshold, isEnabled, log, log, log, logCritical, logCritical, logDebug, logDebug, logError, logError, logFatal, logFatal, logInfo, logInfo, logStatus, logStatus, logWarning, logWarning, setApplication, setDefaultFilter, setDefaultFilterClass, setDefaultFormatter, setDefaultFormatterClass, setEnabled, setFilter, setFormatter, setSeverityThreshold, shouldLog
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fileName

private java.lang.String fileName
Constructor Detail

FileLogger

public FileLogger()

FileLogger

public FileLogger(java.lang.String aFileName)
Method Detail

createFileWriter

private java.io.FileWriter createFileWriter()
                                     throws java.io.IOException

getFileName

public java.lang.String getFileName()

getFileWriter

private java.io.FileWriter getFileWriter()
                                  throws java.io.IOException
Return a FileWriter. Create directories along the file path if necesary.

setFileName

public void setFileName(java.lang.String newFileName)

writeToLog

protected boolean writeToLog(java.lang.String s)
Write the String to the file. Return true if successful, false otherwise.
Overrides:
writeToLog in class Logger

© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com