All Packages Class Hierarchy This Package Previous Next Index
Class sdsu.logging.FileLogger
java.lang.Object
|
+----sdsu.logging.LoggerImplementation
|
+----sdsu.logging.SelectiveLogger
|
+----sdsu.logging.FileLogger
- public class FileLogger
- extends SelectiveLogger
This logger directs all log messages to a file.
As a SelectiveLogger, message types can be turned
off.
- Version:
- 1.1 18 January 1998
- Author:
- Roger Whitney
(whitney@cs.sdsu.edu)
- See Also:
- Logger, SelectiveLogger
-
register(String)
- Create a FileLogger in append mode on the file indicated
and register it with Logger.
-
register(String, boolean)
- Create a FileLogger on the file indicated
and register it with Logger.
-
reset()
- Resets logger.
register
public static LoggerImplementation register(String fileName) throws LoggerCreationException
- Create a FileLogger in append mode on the file indicated
and register it with Logger.
- Parameters:
- fileName - ".log" will be appended to fileName if it
does not already end in ".log"
Returns the current active logger. If a logger has
previously been set, it will be that logger.
register
public static FileLogger register(String fileName,
boolean append) throws LoggerCreationException
- Create a FileLogger on the file indicated
and register it with Logger.
- Parameters:
- append - if true open file in append mode, if false
overwrite file
- fileName - ".log" will be appended to fileName if it
does not already end in ".log"
reset
public synchronized void reset()
- Resets logger. Erases any permanment storage of the log.
This is to allow students to reset their log file. Not
normally part of a logging system.
- Overrides:
- reset in class LoggerImplementation
All Packages Class Hierarchy This Package Previous Next Index