|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--zeta.ZetaInfo
The ZetaInfo class writes information in the specified log file 'info.log'
and the event log file. There is also a usual roll over behaviour of log files.
| Field Summary | |
private static java.text.SimpleDateFormat |
appendsTimestamp
|
private static java.lang.String |
eventLogFilename
|
private static long |
eventLogFileSize
|
private static int |
eventLogMaxBackupIndex
|
private static java.text.SimpleDateFormat |
eventLogTimestamp
|
private static boolean |
exceptionOutput
|
private static java.lang.String |
filename
Filename of the information. |
private static java.lang.String |
newLine
|
private static boolean |
standardOutput
|
| Constructor Summary | |
ZetaInfo()
|
|
| Method Summary | |
static void |
handle(java.lang.Throwable t)
display exception data |
static void |
init(ZetaProperties properties)
Initialize the configuration. |
private static void |
rollOver()
Implements the usual roll over behaviour of log files. |
static void |
setAppendsTimestamp(java.lang.String appendsTimestamp)
Appends timestamps after every information. |
static void |
setEventLogTimestamp(java.lang.String eventLogTimestamp)
Timestamps at the beginning of every information in the event log file. |
static void |
setExceptionOutput(boolean exceptionOutput)
Puts every exception on the standard output stream. |
static void |
setStandardOutput(boolean standardOutput)
Puts every information also on the standard output stream. |
private static long |
toFileSize(java.lang.String value)
|
static void |
write(java.lang.String information)
Writes the specified information in the specified log file and the event log file. |
static void |
write(java.lang.String information,
java.io.PrintStream output)
Writes the specified information in the specified log file and the event log file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.text.SimpleDateFormat appendsTimestamp
private static boolean standardOutput
private static boolean exceptionOutput
private static java.lang.String filename
private static java.lang.String eventLogFilename
private static java.text.SimpleDateFormat eventLogTimestamp
private static long eventLogFileSize
private static int eventLogMaxBackupIndex
private static java.lang.String newLine
| Constructor Detail |
public ZetaInfo()
| Method Detail |
public static void init(ZetaProperties properties)
properties - propertiespublic static void write(java.lang.String information)
information - information
public static void write(java.lang.String information,
java.io.PrintStream output)
information - informationoutput - output streampublic static void handle(java.lang.Throwable t)
public static void setAppendsTimestamp(java.lang.String appendsTimestamp)
public static void setEventLogTimestamp(java.lang.String eventLogTimestamp)
public static void setStandardOutput(boolean standardOutput)
public static void setExceptionOutput(boolean exceptionOutput)
private static void rollOver()
private static long toFileSize(java.lang.String value)
|
ZetaGrid v1.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||