com.adventnet.afp.log
Class ConsoleLog

java.lang.Object
  |
  +--com.adventnet.afp.log.ConsoleLog

public class ConsoleLog
extends java.lang.Object

For quicker notification, the log messages are directed to the console. All the log messages are directed to their respective log files. If there are any error messages, which are to be corrected immediately, then those specific messages can be moved to the place where the user can view it and correct it immediately. For ease of use , these type of error messages are directed to the console instead of log files. There are various types of error messages. Depending upon the type of seriousness , the error messages can be moved to the console.


Field Summary
static java.io.PrintStream err
          It holds the PrintStream reference for printing error messages on the console.
static java.io.PrintStream out
          It holds the PrintStream reference for printing output messages on the console.
 
Method Summary
static boolean init()
          Initialization process takes place here in this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

public static java.io.PrintStream out
It holds the PrintStream reference for printing output messages on the console. Very important Output messages can be displayed in the console using this variable.There are two types of messages namely error messages and output messages. When important output messages are to be passed to the user, then this variable is used for printing the message in the console. Always this variable gets initialized.

err

public static java.io.PrintStream err
It holds the PrintStream reference for printing error messages on the console. The error messages to be corrected without any delay are displayed in the console. err variable is used to display only the error messages in the console.
Method Detail

init

public static boolean init()
Initialization process takes place here in this method. It sets the output and error messages to the corresponding variable.Thus using the print streams, messages can be logged on the console.
Returns:
boolean value true on successful initialization.


Copyright (c)AdventNet Inc., 1996-2004