com.sun.labs.minion
Class Log

java.lang.Object
  extended by com.sun.labs.minion.util.MinionLog
      extended by com.sun.labs.minion.Log
All Implemented Interfaces:
com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

Deprecated.

@Deprecated
public class Log
extends MinionLog

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

DEBUG

public static final int DEBUG
Deprecated. 
Override.

See Also:
Constant Field Values
Constructor Detail

Log

protected Log()
Deprecated. 
Builds a log.

Method Detail

setLevel

public static void setLevel(int ll)
Deprecated. 
Sets the log level for all message types.

Parameters:
ll - The logging level.

setLevel

public static void setLevel(int type,
                            int ll)
Deprecated. 
Sets the log level for all message types.

Parameters:
type - What kind of message is this? Such as warning, debug, log.
ll - The logging level.

setStream

public static void setStream(java.io.OutputStream os)
Deprecated. 
Sets the all the logs to the same stream.

Parameters:
os - The stream that logging data will be sent to. A null value will disable all logging.

setStream

public static void setStream(java.io.PrintWriter pw)
Deprecated. 
Sets the all the logs to the same writer.

Parameters:
pw - The writer that logging data will be sent to. A null value will disable all logging.

log

public static void log(java.lang.String module,
                       int level,
                       java.lang.String msg)
Deprecated. 
Logs a log message to the log stream.

Parameters:
module - The module that is reporting
level - The level of the current message
msg - The message to send to the log.

log

public 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.

Parameters:
module - The module that is reporting
level - The level of the current message
msg - The message to send to the log.
t - A throwable that we can print a stack trace for.

getLog

public static Log getLog()
Deprecated. 
Gets a log that can be used to log a variety of messages to a stream.

Returns:
A log