de.folt.util
Class OpenTMSLogger

java.lang.Object
  extended by de.folt.util.OpenTMSLogger

public class OpenTMSLogger
extends java.lang.Object


Constructor Summary
OpenTMSLogger()
           
 
Method Summary
static void close()
          close - close the log file and resets to standard output stream
static java.lang.String createLogFileName()
          createLogFileName - creates a standard log file names "OpenTMS" using createLogFileName(String basicname)
static java.lang.String createLogFileName(java.lang.String basicname)
          createLogFileName - create a (new) log file in the OpenTMS log directory )Property "OpenTMS.log.dir")
static void println(java.lang.String str)
          println prints a line to the current log file woth calling hierarchy and date/time information
static java.lang.String returnLogFile()
          returnLogFile - returns the current log file name
static java.lang.String returnLogFileName()
          returnLogFileName - returns the current log file name
static int returnLogLevel()
          returnLogLevel the current log level is returned
static void setLogFile()
          setLogFile - set the log file to the standard OpenTMS log file (OpenTMS) using createLogFileName()
static void setLogFile(java.lang.String logFileName)
          setLogFile - sets the log file to a given file name
static void setLogLevel(int iLog)
          setLogLevel - sets the log level to a specific value (int)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenTMSLogger

public OpenTMSLogger()
Method Detail

close

public static void close()
close - close the log file and resets to standard output stream


createLogFileName

public static java.lang.String createLogFileName()
createLogFileName - creates a standard log file names "OpenTMS" using createLogFileName(String basicname)

Returns:
the log file path

createLogFileName

public static java.lang.String createLogFileName(java.lang.String basicname)
createLogFileName - create a (new) log file in the OpenTMS log directory )Property "OpenTMS.log.dir")

Parameters:
basicname - - the file name of the log file to be created
Returns:
the log file path

println

public static void println(java.lang.String str)
println prints a line to the current log file woth calling hierarchy and date/time information

Parameters:
string - the string to print

returnLogFile

public static java.lang.String returnLogFile()
returnLogFile - returns the current log file name

Returns:
the current log file name

returnLogFileName

public static java.lang.String returnLogFileName()
returnLogFileName - returns the current log file name

Returns:
the current log file name using returnLogFile()

returnLogLevel

public static int returnLogLevel()
returnLogLevel the current log level is returned

Returns:
the current log leven

setLogFile

public static void setLogFile()
setLogFile - set the log file to the standard OpenTMS log file (OpenTMS) using createLogFileName()


setLogFile

public static void setLogFile(java.lang.String logFileName)
setLogFile - sets the log file to a given file name

Parameters:
logFileName - - the log file name

setLogLevel

public static void setLogLevel(int iLog)
setLogLevel - sets the log level to a specific value (int)

Parameters:
iLog - - the log level to use