vs.debug
Class LogFactory

java.lang.Object
  extended by vs.debug.LogFactory

public class LogFactory
extends java.lang.Object

Sets up and manages loggers

Author:
swartjes Created on 29-jun-2005

Field Summary
static java.lang.String m_agentName
           
static long timeOffset
           
 
Constructor Summary
LogFactory()
           
 
Method Summary
static void closeLogger(java.lang.String loggerName)
          Closes all handlers of the logger for this package
static void generateIndex()
          Generates index HTML file containing all the log files as links
static java.lang.String getIndex()
           
static java.util.logging.Logger getLogger(java.lang.Object src)
          Returns a logger for the package of the object; sets it up if not used before
static java.util.logging.Logger getLogger(java.lang.String loggerName)
          Deprecated. Use getLogger(Object src) instead. Returns the logger for this package; sets it up if not used before
static void registerAgent(java.lang.String agentName)
          Registers agent name to this LogFactory, to prepend to package name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timeOffset

public static long timeOffset

m_agentName

public static java.lang.String m_agentName
Constructor Detail

LogFactory

public LogFactory()
Method Detail

closeLogger

public static void closeLogger(java.lang.String loggerName)
Closes all handlers of the logger for this package

Parameters:
loggerName - the name of the logger

generateIndex

public static void generateIndex()
Generates index HTML file containing all the log files as links


getIndex

public static java.lang.String getIndex()

getLogger

public static java.util.logging.Logger getLogger(java.lang.Object src)
Returns a logger for the package of the object; sets it up if not used before

Parameters:
src - the Object that is getting the logger
Returns:
the Logger

getLogger

@Deprecated
public static java.util.logging.Logger getLogger(java.lang.String loggerName)
Deprecated. Use getLogger(Object src) instead. Returns the logger for this package; sets it up if not used before

Parameters:
loggerName - the name of the logger
Returns:
the Logger

registerAgent

public static void registerAgent(java.lang.String agentName)
Registers agent name to this LogFactory, to prepend to package name

Parameters:
agentName - description of agent.