com.linar.jintegra
Class Log

java.lang.Object
  extended by com.linar.jintegra.Log

public final class Log
extends java.lang.Object

This class is used to log J-Integra®'s activities.

For more information, please see Contacting Technical Support.


Constructor Summary
Log()
           
 
Method Summary
static void flush()
          Flushes current log information.
static void log(int level, java.lang.String message)
          Inserts a message to current log information.
static void logImmediately(int logLevel, java.io.PrintStream logFile)
          Creates a log immediately to PrintStream.
static void logImmediately(int logLevel, java.lang.String fileName)
          Creates a log file immediately.
static void printStackTrace()
          Prints stack trace of exception.
static void printStackTrace(java.lang.Throwable t)
          Prints stack trace of exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log

public Log()
Method Detail

logImmediately

public static void logImmediately(int logLevel,
                                  java.lang.String fileName)
Creates a log file immediately.

Parameters:
logLevel - the detail level of log file, pass 3 to generate verbose log file
fileName - the name of log file

logImmediately

public static void logImmediately(int logLevel,
                                  java.io.PrintStream logFile)
Creates a log immediately to PrintStream.

Parameters:
logLevel - the detail level of log, pass 3 to generate verbose log file
logFile - the name of PrintStream where log file is created

printStackTrace

public static void printStackTrace()
Prints stack trace of exception.


printStackTrace

public static void printStackTrace(java.lang.Throwable t)
Prints stack trace of exception.

Parameters:
t - the Throwable object

log

public static void log(int level,
                       java.lang.String message)
Inserts a message to current log information.

Parameters:
level - the detail level of log, pass 3 to generate verbose log file
message - the message to insert

flush

public static void flush()
Flushes current log information.