|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
jade.util.PerDayFileLogger
public class PerDayFileLogger
This class is an OutputStream whose output is stored in in different files according to the day it is produced. Existing files, if any, are not rewritten as output is appended at the end of the file.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
PerDayFileLogger(java.lang.String file)
Create a new day-based logger. |
|
| Method Summary | |
|---|---|
void |
print(java.lang.Object obj)
Print a Java object to the proper file, replacing the file every new day. |
void |
print(java.lang.String str)
Print a string to the proper file, replacing the file every new day. |
void |
println()
Print a new line to the proper file, replacing the file every new day. |
void |
println(java.lang.Object obj)
Print a Java object and a newline to the proper file, replacing the file every new day. |
void |
println(java.lang.String str)
Print a string and a new line to the proper file, replacing the file every new day. |
| Methods inherited from class java.io.PrintStream |
|---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, setError, write, write |
| Methods inherited from class java.io.FilterOutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerDayFileLogger(java.lang.String file)
throws java.io.IOException
file - The name of the file to write logs to.
java.io.IOException - If some filesystem operation fails.| Method Detail |
|---|
public void print(java.lang.Object obj)
print in class java.io.PrintStreamobj - The Java object to print.public void print(java.lang.String str)
print in class java.io.PrintStreamstr - The string to print.public void println()
println in class java.io.PrintStreampublic void println(java.lang.Object obj)
println in class java.io.PrintStreamobj - The Java object to print.public void println(java.lang.String str)
println in class java.io.PrintStreamstr - THe string to print.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||