|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.dss.util.xdo.common.log.XDOLogImpl
public class XDOLogImpl
The class XDOLogImpl is an implementation of XDOLog for a standalone environment. It has no dependency with OA except VersionInfo.
Logger| Field Summary |
|---|
| Fields inherited from interface oracle.dss.util.xdo.common.log.XDOLog |
|---|
RCS_ID |
| Fields inherited from interface oracle.dss.util.xdo.common.log.XDOLogConstants |
|---|
ERROR, EVENT, EXCEPTION, OFF, PROCEDURE, STATEMENT, UNEXPECTED |
| Constructor Summary | |
|---|---|
XDOLogImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
isEnabled(int pLevel)
Checks whether logging is enabled for this level. |
void |
setDestination(java.io.OutputStream pOut)
Sets the logging destination. |
void |
setDestination(java.io.Writer pOut)
Sets the logging destination. |
void |
setLevel(int pLevel)
Set the logging level. |
void |
setModule(java.lang.String pModule)
Sets the class/package for which logging should be turned on. |
void |
write(java.lang.Object pThis,
java.lang.String pString,
int pLevel)
Write a log. |
static void |
write(java.lang.Object pThis,
java.lang.String pString,
int pLevel,
java.io.PrintWriter out)
Write a log to out. |
void |
write(java.lang.String pString,
int pLevel)
Write a log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XDOLogImpl()
pOut - Logging destinationsetDestination(Writer),
setDestination(OutputStream)| Method Detail |
|---|
public void setDestination(java.io.Writer pOut)
pOut - Logging destinationpublic void setDestination(java.io.OutputStream pOut)
pOut - Logging destinationpublic void setLevel(int pLevel)
When you set the value to 'OFF', no log info will be displayed.
setLevel in interface XDOLogpLevel - System logging levelpublic void setModule(java.lang.String pModule)
write() method.
For example, if you pass "java.io" to this method,
the log mesasges occurred in "java.io.InputStream" or
"java.io.Writer" will be logged. If you pass If you pass "all",
it will log everything.
The default is "all".
setModule in interface XDOLogpModule - Module name to be logged
public static void write(java.lang.Object pThis,
java.lang.String pString,
int pLevel,
java.io.PrintWriter out)
Logging message will be like;
[component][logging level] log message text [component][logging level] log message text [component][logging level] log message text [component][logging level] log message text [component][logging level] log message textUsually you can pass "this" for the first parameter to log in order to specify the current object in the log.
pThis - Current objectpString - Log messagepLevel - Logging levelout - output Writer
public void write(java.lang.Object pThis,
java.lang.String pString,
int pLevel)
Logging message will be like;
[component][logging level] log message text [component][logging level] log message text [component][logging level] log message text [component][logging level] log message text [component][logging level] log message textUsually you can pass "this" for the first parameter to log in order to specify the current object in the log.
write in interface XDOLogpThis - Current objectpString - Log messagepLevel - Logging level
public void write(java.lang.String pString,
int pLevel)
write in interface XDOLogpString - Log messagepLevel - Logging levelwrite(Object, String, int),
setModule(String)public boolean isEnabled(int pLevel)
isEnabled in interface XDOLogpLevel - the level of the message
true if logging is enabled for pLevel
false if logging is not.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization Components 11g Release 1 (11.1.1.1.0) E12063-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||