ZetaGrid v1.9

zeta
Class ZetaInfo

java.lang.Object
  |
  +--zeta.ZetaInfo

public class ZetaInfo
extends java.lang.Object

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

appendsTimestamp

private static java.text.SimpleDateFormat appendsTimestamp

standardOutput

private static boolean standardOutput

exceptionOutput

private static boolean exceptionOutput

filename

private static java.lang.String filename
Filename of the information.


eventLogFilename

private static java.lang.String eventLogFilename

eventLogTimestamp

private static java.text.SimpleDateFormat eventLogTimestamp

eventLogFileSize

private static long eventLogFileSize

eventLogMaxBackupIndex

private static int eventLogMaxBackupIndex

newLine

private static java.lang.String newLine
Constructor Detail

ZetaInfo

public ZetaInfo()
Method Detail

init

public static void init(ZetaProperties properties)
Initialize the configuration.

Parameters:
properties - properties

write

public static void write(java.lang.String information)
Writes the specified information in the specified log file and the event log file.

Parameters:
information - information

write

public 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.

Parameters:
information - information
output - output stream

handle

public static void handle(java.lang.Throwable t)
display exception data


setAppendsTimestamp

public static void setAppendsTimestamp(java.lang.String appendsTimestamp)
Appends timestamps after every information.


setEventLogTimestamp

public static void setEventLogTimestamp(java.lang.String eventLogTimestamp)
Timestamps at the beginning of every information in the event log file.


setStandardOutput

public static void setStandardOutput(boolean standardOutput)
Puts every information also on the standard output stream.


setExceptionOutput

public static void setExceptionOutput(boolean exceptionOutput)
Puts every exception on the standard output stream.


rollOver

private static void rollOver()
Implements the usual roll over behaviour of log files.


toFileSize

private static long toFileSize(java.lang.String value)

ZetaGrid v1.9

For further technical papers, see ZetaGrid Technical Documentation.
 
Copyright © 2001,2002 Sebastian Wedeniwski. All Rights Reserved.