speedscheduler
Class Log

java.lang.Object
  extended by speedscheduler.Log

public class Log
extends java.lang.Object

A simple logger for this plugin.


Field Summary
private static boolean APPEND_LOG
           
static int DEBUG
           
static java.lang.String DEFAULT_LOG_FILE
           
static int ERROR
           
static int FORCE
           
static int GRAPHICAL
           
static int INFO
           
private static org.gudy.azureus2.plugins.logging.LoggerChannel loggerChannel
           
private static int logLevel
           
static int NONE
           
private static java.io.PrintStream out
           
private static boolean TAKE_OVER_STDERR
           
private static boolean TAKE_OVER_STDOUT
           
static int WARN
           
 
Constructor Summary
private Log()
          No instantiations!
 
Method Summary
private static java.lang.String getDateTimeString()
           
private static void guiDisplay(int level, java.lang.String msg)
           
private static void guiDisplay(java.lang.Throwable t)
           
private static void initGuiLogger()
           
private static void printLineHeader()
           
static void println(java.lang.String msg, int level)
           
static void printStackTrace(java.lang.Exception e)
           
static void printStackTrace(java.lang.Exception e, int level)
           
static void setFile(java.lang.String file)
           
static void setLevel(int newLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

private static java.io.PrintStream out

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

GRAPHICAL

public static final int GRAPHICAL
See Also:
Constant Field Values

FORCE

public static final int FORCE
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

logLevel

private static int logLevel

TAKE_OVER_STDOUT

private static boolean TAKE_OVER_STDOUT

TAKE_OVER_STDERR

private static boolean TAKE_OVER_STDERR

APPEND_LOG

private static boolean APPEND_LOG

loggerChannel

private static org.gudy.azureus2.plugins.logging.LoggerChannel loggerChannel

DEFAULT_LOG_FILE

public static final java.lang.String DEFAULT_LOG_FILE
Constructor Detail

Log

private Log()
No instantiations!

Method Detail

setFile

public static void setFile(java.lang.String file)

setLevel

public static void setLevel(int newLevel)

println

public static void println(java.lang.String msg,
                           int level)

printLineHeader

private static void printLineHeader()

printStackTrace

public static void printStackTrace(java.lang.Exception e,
                                   int level)

printStackTrace

public static void printStackTrace(java.lang.Exception e)

getDateTimeString

private static java.lang.String getDateTimeString()

guiDisplay

private static void guiDisplay(int level,
                               java.lang.String msg)

guiDisplay

private static void guiDisplay(java.lang.Throwable t)

initGuiLogger

private static void initGuiLogger()