|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.commerce.ebusiness.discount.util.Log
@Deprecated public class Log
This class provides some very simple logging interfaces. Everything is static, so just call Log.info(), etc. All static methods for this Singleton service.
Field Summary | |
---|---|
static boolean |
consoleMode
Deprecated See BEA Commerce product offering |
static String |
logDir
Deprecated See BEA Commerce product offering |
static String |
logFile
Deprecated See BEA Commerce product offering |
static PrintWriter |
logWriter
Deprecated See BEA Commerce product offering |
static PrintWriter |
stderrWriter
Deprecated See BEA Commerce product offering |
static PrintWriter |
stdoutWriter
Deprecated See BEA Commerce product offering |
static String |
T_SEP
Deprecated See BEA Commerce product offering |
Constructor Summary | |
---|---|
Log()
Deprecated See BEA Commerce product offering |
Method Summary | |
---|---|
static void |
clearConsole()
Deprecated See BEA Commerce product offering |
static String |
currentTime()
Deprecated See BEA Commerce product offering |
static void |
debug(Object o,
String s)
Deprecated See BEA Commerce product offering |
static void |
debug(String s)
Deprecated See BEA Commerce product offering |
static void |
debug(String s,
boolean newline)
Deprecated See BEA Commerce product offering |
static void |
debug(Throwable e)
Deprecated See BEA Commerce product offering |
static void |
error(Object o,
String s)
Deprecated See BEA Commerce product offering |
static void |
error(String s)
Deprecated See BEA Commerce product offering |
static void |
error(String s,
boolean newline)
Deprecated See BEA Commerce product offering |
static void |
error(Throwable e)
Deprecated See BEA Commerce product offering |
static void |
exception(Throwable e)
Deprecated See BEA Commerce product offering |
static void |
fatal(String s,
int exitVal)
Deprecated See BEA Commerce product offering |
static void |
fatal(Throwable e,
int exitVal)
Deprecated See BEA Commerce product offering |
static PrintWriter |
getPrintWriter()
Deprecated See BEA Commerce product offering |
static String |
getStackTrace(Throwable e)
Deprecated See BEA Commerce product offering |
static PrintWriter |
getStderrWriter()
Deprecated See BEA Commerce product offering |
static PrintWriter |
getStdoutWriter()
Deprecated See BEA Commerce product offering |
static void |
info(String s)
Deprecated See BEA Commerce product offering |
static void |
info(String s,
boolean newline)
Deprecated See BEA Commerce product offering |
static void |
printCurrentTime(PrintWriter out)
Deprecated See BEA Commerce product offering |
static void |
printCurrentTime(PrintWriter out,
boolean showThread)
Deprecated See BEA Commerce product offering |
static long |
profileFinish(String taskName,
long startTime)
Deprecated See BEA Commerce product offering |
static long |
profileFinish(String taskName,
long startTime,
long finishTime,
boolean verbose)
Deprecated See BEA Commerce product offering |
static long |
profileStart()
Deprecated See BEA Commerce product offering |
static void |
setConsole()
Deprecated See BEA Commerce product offering |
static void |
setConsole(boolean value)
Deprecated See BEA Commerce product offering |
static PrintWriter |
setPrintWriter(PrintWriter writer)
Deprecated See BEA Commerce product offering |
static void |
stackTrace()
Deprecated See BEA Commerce product offering |
static void |
warn(String s)
Deprecated See BEA Commerce product offering |
static void |
warn(String s,
boolean newline)
Deprecated See BEA Commerce product offering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String logDir
public static String logFile
public static PrintWriter stdoutWriter
public static PrintWriter stderrWriter
public static PrintWriter logWriter
public static boolean consoleMode
public static final String T_SEP
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void setConsole()
public static void clearConsole()
public static void setConsole(boolean value)
public static PrintWriter getStdoutWriter()
public static PrintWriter getStderrWriter()
public static PrintWriter getPrintWriter()
public static PrintWriter setPrintWriter(PrintWriter writer)
public static long profileStart()
public static long profileFinish(String taskName, long startTime)
long startTime = Log.profileStart(); ...do some stuff... Log.profileFinish("MyApp.TaskName", startTime);
taskName
- A short name for the task -- no spacesstartTime
- from profileStartpublic static long profileFinish(String taskName, long startTime, long finishTime, boolean verbose)
public static void info(String s)
public static void info(String s, boolean newline)
public static void debug(Throwable e)
public static void debug(Object o, String s)
public static void debug(String s)
public static void debug(String s, boolean newline)
public static void error(Object o, String s)
public static void error(String s)
public static void error(String s, boolean newline)
public static void stackTrace()
public static void exception(Throwable e)
public static void error(Throwable e)
public static void fatal(Throwable e, int exitVal)
public static void fatal(String s, int exitVal)
public static String getStackTrace(Throwable e)
public static void warn(String s)
public static void warn(String s, boolean newline)
public static String currentTime()
public static void printCurrentTime(PrintWriter out)
public static void printCurrentTime(PrintWriter out, boolean showThread)
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |