public class LogFile extends java.lang.Object implements IOutputManager, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
LogFile()
Constructor for LogFile.
|
LogFile(java.lang.String fileName)
Constructor for LogFile with specified file name.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDevice()
Closes the log file.
|
java.lang.String |
getLogFileName()
Returns the log file name;
|
long |
getTriggerSize()
Gets the trigger size of the file.
|
static void |
main(java.lang.String[] args)
A test example.
|
void |
print(java.lang.String message)
Writes to the log file.
|
void |
setLogFileName(java.lang.String newLogFileName)
Sets the log file name.
|
void |
setTriggerSize(long newTriggerSize)
Sets the maximum size of the file, in KB.
|
void |
writeln(java.lang.String message)
Writes the message to the log file.
|
public static final java.lang.String COPYRIGHT
public LogFile()
public LogFile(java.lang.String fileName)
fileName
- file name to write logs topublic void closeDevice()
public long getTriggerSize()
public static void main(java.lang.String[] args)
public void print(java.lang.String message)
print
in interface IOutputManager
message
- stringpublic java.lang.String getLogFileName()
public void setLogFileName(java.lang.String newLogFileName)
newLogFileName
- log file namepublic void setTriggerSize(long newTriggerSize)
newTriggerSize
- long: the maximum file size in KBytes.public void writeln(java.lang.String message)
message
- string