|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.util.MinionLog
com.sun.labs.minion.Log
@Deprecated public class Log
A class that logs information for the search engine.
| Field Summary | |
|---|---|
static int |
DEBUG
Deprecated. Override. |
| Fields inherited from class com.sun.labs.minion.util.MinionLog |
|---|
ERROR, instance, LOG, logLevels, PROP_LOG_FILE, streams, WARN, writers |
| Constructor Summary | |
|---|---|
protected |
Log()
Deprecated. Builds a log. |
| Method Summary | |
|---|---|
static Log |
getLog()
Deprecated. Gets a log that can be used to log a variety of messages to a stream. |
static void |
log(java.lang.String module,
int level,
java.lang.String msg)
Deprecated. Logs a log message to the log stream. |
static void |
log(java.lang.String module,
int level,
java.lang.String msg,
java.lang.Throwable t)
Deprecated. Logs a log message to the log stream. |
static void |
setLevel(int ll)
Deprecated. Sets the log level for all message types. |
static void |
setLevel(int type,
int ll)
Deprecated. Sets the log level for all message types. |
static void |
setStream(java.io.OutputStream os)
Deprecated. Sets the all the logs to the same stream. |
static void |
setStream(java.io.PrintWriter pw)
Deprecated. Sets the all the logs to the same writer. |
| Methods inherited from class com.sun.labs.minion.util.MinionLog |
|---|
debug, debug, error, error, getLevel, getLogLevel, newProperties, setLogger, setStream, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEBUG
| Constructor Detail |
|---|
protected Log()
| Method Detail |
|---|
public static void setLevel(int ll)
ll - The logging level.
public static void setLevel(int type,
int ll)
type - What kind of message is this? Such as warning, debug, log.ll - The logging level.public static void setStream(java.io.OutputStream os)
os - The stream that logging data will be sent to. A null
value will disable all logging.public static void setStream(java.io.PrintWriter pw)
pw - The writer that logging data will be sent to. A null
value will disable all logging.
public static void log(java.lang.String module,
int level,
java.lang.String msg)
module - The module that is reportinglevel - The level of the current messagemsg - The message to send to the log.
public static void log(java.lang.String module,
int level,
java.lang.String msg,
java.lang.Throwable t)
module - The module that is reportinglevel - The level of the current messagemsg - The message to send to the log.t - A throwable that we can print a stack trace for.public static Log getLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||