speedscheduler
Class Log
java.lang.Object
speedscheduler.Log
public class Log
- extends java.lang.Object
A simple logger for this plugin.
Constructor Summary |
private |
Log()
No instantiations! |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Log
private Log()
- No instantiations!
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()