|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.tc.mobile.logging.LogController
public abstract class LogController
Log controller. This resembles standard SAP Logging API, with some limitations.
| Nested Class Summary | |
|---|---|
static interface |
LogController.LogImplementation
MI private log implementation interface. |
| Field Summary | |
|---|---|
static boolean |
isPDA
|
protected static LogController.LogImplementation |
mobileImpl
Logger implementation for all non-Web-Dynpro logging needs. |
protected static MsgObject |
NULL_OBJECT
Message object to use in case null was passed for message object. |
protected static LogController.LogImplementation |
standardImpl
Logger implementation mainly for Web Dynpro logging. |
| Constructor Summary | |
|---|---|
protected |
LogController(java.lang.String name,
LogController parent)
Create new log controller. |
| Method Summary | |
|---|---|
boolean |
beDebug()
Same as beLogged(int)but always checks for a debug message,
that is a message with severity Severity.DEBUG. |
boolean |
beError()
Same as beLogged(int)but always checks for an error message,
that is a message with severity Severity.ERROR. |
boolean |
beFatal()
Same as beLogged(int)but always checks for a fatal error
message, that is a message with severity Severity.FATAL. |
boolean |
beInfo()
Same as beLogged(int)but always checks for an informational
message, that is a message with severity Severity.INFO. |
boolean |
beLogged(int severity)
Checks whether a message with the specified severity would be written via this log controller. |
boolean |
bePath()
Same as beLogged(int)but always checks for a path message, that
is a message with severity Severity.PATH. |
boolean |
beWarning()
Same as beLogged(int)but always checks for a warning message,
that is a message with severity Severity.WARNING. |
protected void |
enableTrace(boolean enable)
|
protected void |
exceptionImpl(boolean trace,
int severity,
Location loc,
java.lang.String subLoc,
java.lang.Object msgCode,
java.lang.Object[] args,
java.lang.String msgClear,
java.lang.Throwable exc)
|
java.util.Collection |
getChildren()
Gets the collection of children of this log controller. |
int |
getEffectiveSeverity()
Gets the current effective severity of this log controller. |
int |
getMaximumSeverity()
Gets the current maximum severity of this log controller. |
int |
getMinimumSeverity()
Gets the current minimum severity of this log controller. |
java.lang.String |
getName()
Get name of this log controller. |
protected LogController |
getParentInt()
Get parent log controller. |
static void |
init()
|
protected boolean |
isTraceEnabled()
|
protected void |
logImpl(int severity,
Category category,
java.lang.String subLoc,
java.lang.Object messageCode,
java.lang.Object[] args,
java.lang.String clearMsg)
|
protected void |
logImpl(int severity,
Location location,
java.lang.String subLoc,
java.lang.Object messageCode,
java.lang.Object[] args,
java.lang.String clearMsg)
|
protected void |
reset()
Reset this LogController to the initial state. |
protected void |
resetAll()
Reset this LogController and his children to the initial state |
protected void |
setEffectiveSeverity()
Resets the effective severity of this log controller. |
protected void |
setEffectiveSeverity(int severity)
Sets the effective severity of this log controller. |
protected void |
setMaximumSeverity()
Resets the maximum severity of this log controller. |
protected void |
setMaximumSeverity(int severity)
Sets the maximum severity of this log controller. |
protected void |
setMinimumSeverity()
Resets the minimum severity of this log controller. |
protected void |
setMinimumSeverity(int severity)
Sets the minimum severity of this log controller. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean isPDA
protected static final MsgObject NULL_OBJECT
protected static final LogController.LogImplementation standardImpl
protected static final LogController.LogImplementation mobileImpl
| Constructor Detail |
|---|
protected LogController(java.lang.String name,
LogController parent)
name - controller name.parent - controller parent.| Method Detail |
|---|
public static void init()
protected void logImpl(int severity,
Category category,
java.lang.String subLoc,
java.lang.Object messageCode,
java.lang.Object[] args,
java.lang.String clearMsg)
protected void logImpl(int severity,
Location location,
java.lang.String subLoc,
java.lang.Object messageCode,
java.lang.Object[] args,
java.lang.String clearMsg)
protected boolean isTraceEnabled()
protected void enableTrace(boolean enable)
protected void exceptionImpl(boolean trace,
int severity,
Location loc,
java.lang.String subLoc,
java.lang.Object msgCode,
java.lang.Object[] args,
java.lang.String msgClear,
java.lang.Throwable exc)
public java.lang.String toString()
toString in class java.lang.Objectprotected LogController getParentInt()
public java.lang.String getName()
public boolean beLogged(int severity)
false the
message is not going to be written but not vice versa. To this end, the
method checks whether the specified severity is equal to or higher than
the effective severity of the controller. It does neither take into
account severities assigned to relations with other log controllers nor
filters associated with the log controller or logs. This version of the
method is more efficient than the version also taking another log
controller as argument, and therefore better fits the purpose to avoid
inefficiencies.
severity - Severity of message to be writtenpublic boolean beDebug()
beLogged(int)but always checks for a debug message,
that is a message with severity Severity.DEBUG.
public boolean bePath()
beLogged(int)but always checks for a path message, that
is a message with severity Severity.PATH.
public boolean beInfo()
beLogged(int)but always checks for an informational
message, that is a message with severity Severity.INFO.
public boolean beWarning()
beLogged(int)but always checks for a warning message,
that is a message with severity Severity.WARNING.
public boolean beError()
beLogged(int)but always checks for an error message,
that is a message with severity Severity.ERROR.
public boolean beFatal()
beLogged(int)but always checks for a fatal error
message, that is a message with severity Severity.FATAL.
protected void setMinimumSeverity(int severity)
setEffectiveSeverity(int).
severity - New minimum severityprotected void setMinimumSeverity()
setMinimumSeverity(int) with
Severity.ALL.
protected void setEffectiveSeverity(int severity)
setMinimumSeverity(int) and
setMaximumSeverity(int).
severity - New effective severityprotected void setEffectiveSeverity()
setMinimumSeverity() and
setMaximumSeverity().
protected void setMaximumSeverity(int severity)
setEffectiveSeverity(int).
severity - New maximum severityprotected void setMaximumSeverity()
setMinimumSeverity(int) with
Severity.NONE.
public int getMinimumSeverity()
Severity.ALL.public int getEffectiveSeverity()
Severity.NONE.public int getMaximumSeverity()
Severity.NONE.protected void reset()
protected void resetAll()
public java.util.Collection getChildren()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||