Class jif.log.DiskLog
All Packages Class Hierarchy This Package Previous Next Index
Class jif.log.DiskLog
java.lang.Object
|
+----java.io.RandomAccessFile
|
+----jif.log.DiskLog
- public class DiskLog
- extends RandomAccessFile
A class that allows log entries to be written to a disk file.
- See Also:
- RandomAccessFile
-
DiskLog(String)
- Builds a DiskLog object and creates a log file with a default name.
-
DiskLog(String, String)
- Builds a DiskLog object and creates a log file with the specified name.
-
createLogFileName()
- Creates a log file name.
-
log(char, String)
- Writes an entry to the log file
DiskLog
public DiskLog(String appName) throws IOException
- Builds a DiskLog object and creates a log file with a default name.
- Parameters:
- appName - The name of the application using this log
DiskLog
public DiskLog(String logName,
String name) throws IOException
- Builds a DiskLog object and creates a log file with the specified name.
- Parameters:
- logName - The name of the log file
- name - The name of the application using this log
createLogFileName
protected static String createLogFileName()
- Creates a log file name. Default name is "syslog."
log
public void log(char logLevel,
String logEntry) throws IOException
- Writes an entry to the log file
- Parameters:
- logLevel - The severity of the log entry
- logEntry - The log entry
All Packages Class Hierarchy This Package Previous Next Index