|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.ras.LogFile
LogFile is used to define the file output of the Logging service.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
protected java.io.PrintWriter |
pWriter
The PrintWriter that sends a formatted log
event to its destination. |
Constructor Summary | |
LogFile()
LogFile constructor comment. |
|
LogFile(java.lang.String fileName)
LogFile constructor comment. |
Method Summary | |
void |
closeDevice()
Close the log file. |
protected void |
finalize()
Close the log device for cleanup. |
long |
getTriggerSize()
Get the trigger size of the file. |
static void |
main(java.lang.String[] args)
Run a testing example. |
protected void |
openDevice()
Open a new log file. |
void |
print(java.lang.String message)
Write to the log file. |
void |
setLogFileName(java.lang.String newLogFileName)
Set the log file name. |
void |
setTriggerSize(long newTriggerSize)
Set the maximum size of the file, in KB. |
void |
writeln(java.lang.String message)
Write the message to the log file. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
protected transient java.io.PrintWriter pWriter
PrintWriter
that sends a formatted log
event to its destination.Constructor Detail |
public LogFile()
public LogFile(java.lang.String fileName)
Method Detail |
public void closeDevice()
protected void finalize()
finalize
in class java.lang.Object
public long getTriggerSize()
public static void main(java.lang.String[] args)
protected void openDevice()
public void print(java.lang.String message)
print
in interface IOutputManager
message
- Stringpublic void setLogFileName(java.lang.String newLogFileName)
newLogFileName
- Stringpublic void setTriggerSize(long newTriggerSize)
newTriggerSize
- long: the size in KBytes.public void writeln(java.lang.String message)
message
- String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |