Bridges-Java 3.5.1
Bridges(Java API)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
bridges.validation.OutputLog Class Reference
Inheritance diagram for bridges.validation.OutputLog:

Public Member Functions

 OutputLog ()
 
boolean recordLog ()
 
boolean returnStream () throws IOException
 
void write (int b) throws IOException
 
void write (byte[] b) throws IOException
 
void write (byte[] b, int a, int lenght) throws IOException
 
void close () throws IOException
 
void flush () throws IOException
 
void logMessage ()
 

Static Public Member Functions

static void splitStream ()
 

Static Protected Attributes

static PrintStream capturedStream
 
static PrintStream newOutputStream
 
static PrintStream logStream
 
static PrintStream logStream2
 
static FileOutputStream logFile
 
static ByteArrayOutputStream temp1
 
static ByteArrayOutputStream temp2
 
static String aPathToLog
 

Detailed Description

@Title: Log file generator

Author
: Mihai Mehedint @Description: this class generates a log file containing both the standard output and the error output with a time stamp. The file named "bridgesLog.txt" is located in the user's directory. To use the logger one must create an OutputLog object at the beginning of main method: OutputLog theLog = new OutputLog(); Then the log stream must be return to normal output by using: theLog.returnStream(); at the end of the main method. Also include: throws IOException

Warning: You can use the logger on one file at a time.

Constructor & Destructor Documentation

◆ OutputLog()

bridges.validation.OutputLog.OutputLog ( )

Constructor

Member Function Documentation

◆ close()

void bridges.validation.OutputLog.close ( ) throws IOException

◆ flush()

void bridges.validation.OutputLog.flush ( ) throws IOException

◆ logMessage()

void bridges.validation.OutputLog.logMessage ( )

This prints the Logger message to standard output

◆ recordLog()

boolean bridges.validation.OutputLog.recordLog ( )

This method records the time stamp to the current log entry

Returns
boolean

◆ returnStream()

boolean bridges.validation.OutputLog.returnStream ( ) throws IOException

This method returns the stream to standard output

Returns
boolean

◆ splitStream()

static void bridges.validation.OutputLog.splitStream ( )
static

This method redirects the IO stream

◆ write() [1/3]

void bridges.validation.OutputLog.write ( byte[]  b) throws IOException

◆ write() [2/3]

void bridges.validation.OutputLog.write ( byte[]  b,
int  a,
int  lenght 
) throws IOException

◆ write() [3/3]

void bridges.validation.OutputLog.write ( int  b) throws IOException

Member Data Documentation

◆ aPathToLog

String bridges.validation.OutputLog.aPathToLog
staticprotected

◆ capturedStream

PrintStream bridges.validation.OutputLog.capturedStream
staticprotected

◆ logFile

FileOutputStream bridges.validation.OutputLog.logFile
staticprotected

◆ logStream

PrintStream bridges.validation.OutputLog.logStream
staticprotected

◆ logStream2

PrintStream bridges.validation.OutputLog.logStream2
staticprotected

◆ newOutputStream

PrintStream bridges.validation.OutputLog.newOutputStream
staticprotected

◆ temp1

ByteArrayOutputStream bridges.validation.OutputLog.temp1
staticprotected

◆ temp2

ByteArrayOutputStream bridges.validation.OutputLog.temp2
staticprotected

The documentation for this class was generated from the following file: