Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


oracle.dss.util.xdo.common.log
Class DebugUtil

java.lang.Object
  extended by oracle.dss.util.xdo.common.log.DebugUtil


public class DebugUtil
extends java.lang.Object

Debug Utility


Field Summary
static java.lang.String DEBUG_CFG
           
static java.lang.String LOG_FILE
           

 

Constructor Summary
DebugUtil()
           

 

Method Summary
 void checkConfigFile()
          Check the debug configuration file ( xdodebug.cfg ) and turns on the debug mode if the file exists.
 java.lang.String getLogDir()
          Returns the <LogDir> in the debug configuration file.
 int getLogLevel()
          Returns the <LogLevel> in the debug configuration file.
 boolean isDebugMode()
          Returns true if it's in the debug mode
 java.io.InputStream logFile(java.io.InputStream in, java.lang.String filename)
          Logs a file under the <LogDir> specified by xdodebug.cfg.
 java.io.Reader logFile(java.io.Reader in, java.lang.String filename)
          Logs a file under the <LogDir> specified by xdodebug.cfg.
 void write(java.lang.Object pThis, java.lang.String pString, int pLevel)
          Write a log message to <LogDir>/xdo.log

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

DEBUG_CFG

public static final java.lang.String DEBUG_CFG
See Also:
Constant Field Values

LOG_FILE

public static final java.lang.String LOG_FILE
See Also:
Constant Field Values

Constructor Detail

DebugUtil

public DebugUtil()

Method Detail

checkConfigFile

public void checkConfigFile()
Check the debug configuration file ( xdodebug.cfg ) and turns on the debug mode if the file exists.

isDebugMode

public boolean isDebugMode()
Returns true if it's in the debug mode
Returns:

getLogDir

public java.lang.String getLogDir()
Returns the <LogDir> in the debug configuration file. Returns null if the debug mode is off.
Returns:

getLogLevel

public int getLogLevel()
Returns the <LogLevel> in the debug configuration file. Returns Logger.STATEMENT if the debug mode is off.
Returns:

logFile

public java.io.InputStream logFile(java.io.InputStream in,
                                   java.lang.String filename)
Logs a file under the <LogDir> specified by xdodebug.cfg. If the debug mode is off, this method do nothing and returns the input InputStream as is.
Parameters:
in -
filename -
Returns:

logFile

public java.io.Reader logFile(java.io.Reader in,
                              java.lang.String filename)
Logs a file under the <LogDir> specified by xdodebug.cfg. If the debug mode is off, this method do nothing and returns the input InputStream as is.
Parameters:
in -
filename -
Returns:

write

public void write(java.lang.Object pThis,
                  java.lang.String pString,
                  int pLevel)
Write a log message to <LogDir>/xdo.log
Parameters:
pThis -
pString -
pLevel -

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-03


Copyright © 1997, 2009, Oracle. All rights reserved.