Style Intelligence v12.0

inetsoft.report
Class ReportLog

java.lang.Object
  extended by inetsoft.report.ReportLog
Direct Known Subclasses:
SreeLog

Deprecated. logging is now provided using the Java logging facilities.

public class ReportLog
extends Object

Log used by the reporting engine.

Since:
5.1
See Also:
java.util.logging

Nested Class Summary
static interface ReportLog.Delegate
          Deprecated. logging is now provided using the Apache Commons Logging library. Log delegation should be accomplished by using an appender implementation for the logging subsystem used in your deployment.
 
Field Summary
static int DEBUG
          Deprecated. DEBUG is a log level that provides tracing information for debugging.
static int ERROR
          Deprecated. ERROR is a log level that indicates a serious failure.
static int INFO
          Deprecated. INFO is a log level for informational messages.
protected static Logger LOG
          Deprecated. The Java Logger to which all logging calls are delegated.
protected static Logger ROOT_LOG
          Deprecated. The root Java Logger for the InetSoft API.
static int TRACE
          Deprecated. TRACE is a log level that provides highly detailed tracing information.
static int WARNING
          Deprecated. WARNING is a log level that indicates a potential problem.
 
Constructor Summary
protected ReportLog()
          Deprecated. Create a new instance of ReportLog.
 
Method Summary
static void debug(String msg, String aspect)
          Deprecated. logging is now provided using the Java logging facilities.
static void debug(Throwable ex, String aspect)
          Deprecated. logging is now provided using the Java logging facilities.
protected  void disposeLog()
          Deprecated. Closes and removes all handlers that have been added for this log.
protected static ReportLog getLog()
          Deprecated. logging is now provided using the Java logging facilities.
static boolean isDebugging(String aspect)
          Deprecated. logging is now provided using the Java logging facilities.
static void print(String msg)
          Deprecated. use print(String msg, int level) instead.
static void print(String msg, int level)
          Deprecated. logging is now provided using the Java logging facilities.
static void print(String task, long start)
          Deprecated. Use print(java.lang.String, int) instead.
static void print(String task, long start, int level)
          Deprecated. logging is now provided using the Java logging facilities.
static void print(Throwable exc)
          Deprecated. Use print(java.lang.Throwable, int) instead.
static void print(Throwable exc, int level)
          Deprecated. logging is now provided using the Java logging facilities.
protected  void printError(Throwable exc, int level)
          Deprecated. Print an error to this log.
protected  void printMessage(String msg, int level)
          Deprecated. Print a message to this log.
static void setDelegate(ReportLog.Delegate delegate)
          Deprecated. logging is now provided using the Java logging facilities. Log delegation should now be achived by implementing a Handler and adding it to the "inetsoft" logger. Note that any handlers added to this logger must use a HandlerFilter.
static void setFormat(String format)
          Deprecated. logging is now provided using the Java logging facilities. Message formatting should be accomplished by setting the Formatter on a specific handler, or by creating a "logging.properties" file in your configuration directory.
protected static void setLog(ReportLog log)
          Deprecated. logging is now provided using the Java logging facilities.
protected  void setLogDelegate(ReportLog.Delegate delegate)
          Deprecated. Set the delegate for this log.
protected  void setMessageFormat(String format)
          Deprecated. Set the format for log messages.
static void setThreshold(int threshold)
          Deprecated. logging is now provided using the Java logging facilities. Log filtering should be accomplished by adding a LoggerFilter to a particular logger, or by creating a "logging.properties" file in your configuration directory.
protected  void setThresholdLevel(int level)
          Deprecated. Set the threshold level of this log.
protected  void setWriteToConsole(boolean write)
          Deprecated. Sets whether log messages should be written to the console.
protected  void setWriteToStream(PrintWriter writer)
          Deprecated. Set the writer to which the log message should be written.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE

public static final int TRACE
Deprecated. 
TRACE is a log level that provides highly detailed tracing information.

See Also:
Constant Field Values

DEBUG

public static final int DEBUG
Deprecated. 
DEBUG is a log level that provides tracing information for debugging.

See Also:
Constant Field Values

INFO

public static final int INFO
Deprecated. 
INFO is a log level for informational messages.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Deprecated. 
WARNING is a log level that indicates a potential problem.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Deprecated. 
ERROR is a log level that indicates a serious failure.

See Also:
Constant Field Values

LOG

protected static final Logger LOG
Deprecated. 
The Java Logger to which all logging calls are delegated.


ROOT_LOG

protected static final Logger ROOT_LOG
Deprecated. 
The root Java Logger for the InetSoft API.

Constructor Detail

ReportLog

protected ReportLog()
Deprecated. 
Create a new instance of ReportLog.

Method Detail

setDelegate

public static void setDelegate(ReportLog.Delegate delegate)
Deprecated. logging is now provided using the Java logging facilities. Log delegation should now be achived by implementing a Handler and adding it to the "inetsoft" logger. Note that any handlers added to this logger must use a HandlerFilter.

Set the delegate for the log.

Parameters:
delegate - the log delegate.

setThreshold

public static void setThreshold(int threshold)
Deprecated. logging is now provided using the Java logging facilities. Log filtering should be accomplished by adding a LoggerFilter to a particular logger, or by creating a "logging.properties" file in your configuration directory.

Set the priority threshold of the log. Any messages or errors with a priority level below the threshold will not be printed.

Parameters:
threshold - the level of the priority threshold. The level may be one of TRACE, DEBUG, INFO, WARNING, or ERROR.

setFormat

public static void setFormat(String format)
Deprecated. logging is now provided using the Java logging facilities. Message formatting should be accomplished by setting the Formatter on a specific handler, or by creating a "logging.properties" file in your configuration directory.

Set the format for log messages.

Parameters:
format - the format string, as specified in MessageFormat.

print

public static void print(String msg)
Deprecated. use print(String msg, int level) instead.

Print a message to the log.

Parameters:
msg - the message.

print

public static void print(String msg,
                         int level)
Deprecated. logging is now provided using the Java logging facilities.

Print a message to the log.

Parameters:
msg - the message.
level - the priority level of the message. The level may be one of TRACE, DEBUG, INFO, WARNING, or ERROR.

isDebugging

public static boolean isDebugging(String aspect)
Deprecated. logging is now provided using the Java logging facilities.

Check if an aspect is under debugging.

Parameters:
aspect - the specified aspect.
Returns:
true if the aspect is under debugging, false otherwise.

debug

public static void debug(String msg,
                         String aspect)
Deprecated. logging is now provided using the Java logging facilities.

Print a message for debug.

Parameters:
msg - the specified message.
aspect - the specified aspect.

print

public static void print(Throwable exc)
Deprecated. Use print(java.lang.Throwable, int) instead.

Print an error to the log.

Parameters:
exc - the error.

debug

public static void debug(Throwable ex,
                         String aspect)
Deprecated. logging is now provided using the Java logging facilities.

Print an error for debug.

Parameters:
ex - the specified error.
aspect - the specified aspect.

print

public static void print(Throwable exc,
                         int level)
Deprecated. logging is now provided using the Java logging facilities.

Print an error to the log.

Parameters:
exc - the error.
level - the priority level of the error. The level may be one of TRACE, DEBUG, INFO, WARNING, or ERROR.

print

public static void print(String task,
                         long start)
Deprecated. Use print(java.lang.String, int) instead.

Print a performance message to the log.

Parameters:
task - the name of the task.
start - the time the task was started.

print

public static void print(String task,
                         long start,
                         int level)
Deprecated. logging is now provided using the Java logging facilities.

Print a performance message to the log.

Parameters:
task - the name of the task.
start - the time the task was started.
level - the priority level of the message. The level may be one of TRACE, DEBUG, INFO, WARNING, or ERROR.

getLog

protected static ReportLog getLog()
Deprecated. logging is now provided using the Java logging facilities.

Get the ReportLog instance for the current thread.

Returns:
a ReportLog instance.

setLog

protected static void setLog(ReportLog log)
Deprecated. logging is now provided using the Java logging facilities.

Set the ReportLog instance for the current thread.

Parameters:
log - the ReportLog instance to use for the current thread.

setLogDelegate

protected void setLogDelegate(ReportLog.Delegate delegate)
Deprecated. 
Set the delegate for this log.

Parameters:
delegate - the log delegate.

setThresholdLevel

protected void setThresholdLevel(int level)
Deprecated. 
Set the threshold level of this log.

Parameters:
level - the threshold level.

setMessageFormat

protected void setMessageFormat(String format)
Deprecated. 
Set the format for log messages.

Parameters:
format - the format string.

printMessage

protected void printMessage(String msg,
                            int level)
Deprecated. 
Print a message to this log.

Parameters:
msg - the message.
level - the priority level of the message.

printError

protected void printError(Throwable exc,
                          int level)
Deprecated. 
Print an error to this log.

Parameters:
exc - the error.
level - the priority level of the error.

setWriteToConsole

protected void setWriteToConsole(boolean write)
Deprecated. 
Sets whether log messages should be written to the console.

Parameters:
write - true to write to the console; false otherwise.

setWriteToStream

protected void setWriteToStream(PrintWriter writer)
Deprecated. 
Set the writer to which the log message should be written.

Parameters:
writer - the target writer.

disposeLog

protected void disposeLog()
Deprecated. 
Closes and removes all handlers that have been added for this log.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.