de.fh_mannheim.mm.dms.framework
Class Logger

java.lang.Object
  extended byde.fh_mannheim.mm.dms.framework.Logger

public class Logger
extends java.lang.Object

Logger is a class for logging information in a textfile.

Version:
$Revision: 1.7 $
Author:
Jan Löffler, mail@jlsoft.de

Constructor Summary
Logger()
           
 
Method Summary
static java.lang.String getLogFilename()
          Get filename for logger.
static void log(java.lang.String strText)
          Append a text to the logfile.
static void log(java.lang.String strText, boolean bPrintToScreen)
          Append a text to the logfile.
static void logToScreen(java.lang.String strText)
          Append a text to the logfile.
static void logWarning(java.lang.String strText)
          Append a text to the logfile.
static void logWarning(java.lang.String strText, boolean bPrintToScreen)
          Append a text to the logfile.
static void logWarningToScreen(java.lang.String strText)
          Append a text to the logfile.
static void publish(java.util.logging.LogRecord record)
          Append a record to the logfile.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

getLogFilename

public static java.lang.String getLogFilename()
Get filename for logger.

Returns:
filename

log

public static void log(java.lang.String strText,
                       boolean bPrintToScreen)
Append a text to the logfile.

Parameters:
strText - Text to be added
bPrintToScreen - Should text be displayed too

log

public static void log(java.lang.String strText)
Append a text to the logfile.

Parameters:
strText - Text to be added

logToScreen

public static void logToScreen(java.lang.String strText)
Append a text to the logfile.

Parameters:
strText - Text to be added

logWarningToScreen

public static void logWarningToScreen(java.lang.String strText)
Append a text to the logfile.

Parameters:
strText - Text to be added

publish

public static void publish(java.util.logging.LogRecord record)
Append a record to the logfile.

Parameters:
record - Record to be added

logWarning

public static void logWarning(java.lang.String strText,
                              boolean bPrintToScreen)
Append a text to the logfile.

Parameters:
strText - Text to be added
bPrintToScreen - Should text be displayed too

logWarning

public static void logWarning(java.lang.String strText)
Append a text to the logfile.

Parameters:
strText - Text to be added