se.sics.isl.util
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by se.sics.isl.util.LogFormatter

public class LogFormatter
extends java.util.logging.Formatter


Constructor Summary
LogFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
           
static java.util.logging.Level getLogLevel(int level)
           
 boolean isShowingThreads()
           
static void separator(java.util.logging.Logger log, java.util.logging.Level level, java.lang.String title)
           
static void separator(java.util.logging.Logger log, java.util.logging.Level level, java.lang.String title, java.lang.String message)
           
 void setAliasLevel(int aliasLevel)
           
static void setConsoleLevel(java.util.logging.Level level)
           
static void setFileLevel(java.util.logging.Level level)
           
static void setFormatterForAllHandlers(java.util.logging.Formatter formatter)
           
static void setLevelForAllHandlers(java.util.logging.Level level)
           
 void setLogTime(long currentTime)
           
 void setShowingThreads(boolean isShowingThreads)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFormatter

public LogFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter

setLogTime

public void setLogTime(long currentTime)

isShowingThreads

public boolean isShowingThreads()

setShowingThreads

public void setShowingThreads(boolean isShowingThreads)

setAliasLevel

public void setAliasLevel(int aliasLevel)

separator

public static void separator(java.util.logging.Logger log,
                             java.util.logging.Level level,
                             java.lang.String title)

separator

public static void separator(java.util.logging.Logger log,
                             java.util.logging.Level level,
                             java.lang.String title,
                             java.lang.String message)

setFormatterForAllHandlers

public static void setFormatterForAllHandlers(java.util.logging.Formatter formatter)

setConsoleLevel

public static void setConsoleLevel(java.util.logging.Level level)

getLogLevel

public static java.util.logging.Level getLogLevel(int level)

setFileLevel

public static void setFileLevel(java.util.logging.Level level)

setLevelForAllHandlers

public static void setLevelForAllHandlers(java.util.logging.Level level)


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.