|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sap.tc.mobile.logging.LogController
com.sap.tc.mobile.logging.Location
public abstract class Location
Logger for specific location.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sap.tc.mobile.logging.LogController |
|---|
LogController.LogImplementation |
| Field Summary |
|---|
| Fields inherited from class com.sap.tc.mobile.logging.LogController |
|---|
isPDA, mobileImpl, NULL_OBJECT, standardImpl |
| Constructor Summary | |
|---|---|
protected |
Location(java.lang.String name,
LogController parent)
|
| Method Summary | |
|---|---|
boolean |
beDebug()
Same as LogController.beLogged(int)but always checks for a debug message,
that is a message with severity Severity.DEBUG. |
boolean |
beError()
Same as LogController.beLogged(int)but always checks for an error message,
that is a message with severity Severity.ERROR. |
boolean |
beInfo()
Same as LogController.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 LogController.beLogged(int)but always checks for a path message, that
is a message with severity Severity.PATH. |
void |
debug(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Log a message with severity Severity.DEBUG. |
void |
debug(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Log a message with severity Severity.DEBUG. |
void |
debugT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.DEBUG. |
void |
debugT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.DEBUG. |
void |
error(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Log a message with severity Severity.ERROR. |
void |
error(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Log a message with severity Severity.ERROR. |
void |
errorT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.ERROR. |
void |
errorT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.ERROR. |
static Location |
getLocation(java.lang.Class cls)
Create a new location. |
static Location |
getLocation(java.lang.String name)
Create a new location. |
Location |
getParent()
Gets the parent location of this location. |
static Location |
getRoot()
Gets the mobileLocationRoot location (parent of every location). |
static Location |
getStandardRoot()
|
void |
info(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Log a message with severity Severity.INFO. |
void |
info(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Log a message with severity Severity.INFO. |
void |
infoT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.INFO. |
void |
infoT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.INFO. |
void |
path(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Log a message with severity Severity.PATH. |
void |
path(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Log a message with severity Severity.PATH. |
void |
pathT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.PATH. |
void |
pathT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Log a message with severity Severity.PATH. |
void |
traceThrowable(int severity,
java.lang.String subLoc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable exc)
Trace an exception. |
void |
traceThrowable(int severity,
java.lang.String subLoc,
MsgObject msgObject,
java.lang.Throwable exc)
Trace an exception. |
void |
traceThrowableT(int severity,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args,
java.lang.Throwable exc)
Trace an exception. |
| Methods inherited from class com.sap.tc.mobile.logging.LogController |
|---|
beFatal, beWarning, enableTrace, exceptionImpl, getChildren, getEffectiveSeverity, getMaximumSeverity, getMinimumSeverity, getName, getParentInt, init, isTraceEnabled, logImpl, logImpl, reset, resetAll, setEffectiveSeverity, setEffectiveSeverity, setMaximumSeverity, setMaximumSeverity, setMinimumSeverity, setMinimumSeverity, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Location(java.lang.String name,
LogController parent)
| Method Detail |
|---|
public static Location getLocation(java.lang.String name)
name - location name.
public static Location getLocation(java.lang.Class cls)
cls - location class.
public static Location getRoot()
public static Location getStandardRoot()
public Location getParent()
public boolean beDebug()
LogControllerLogController.beLogged(int)but always checks for a debug message,
that is a message with severity Severity.DEBUG.
beDebug in class LogControllerpublic boolean bePath()
LogControllerLogController.beLogged(int)but always checks for a path message, that
is a message with severity Severity.PATH.
bePath in class LogControllerpublic boolean beInfo()
LogControllerLogController.beLogged(int)but always checks for an informational
message, that is a message with severity Severity.INFO.
beInfo in class LogControllerpublic boolean beError()
LogControllerLogController.beLogged(int)but always checks for an error message,
that is a message with severity Severity.ERROR.
beError in class LogControllerpublic boolean beLogged(int severity)
LogControllerfalse 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.
beLogged in class LogControllerseverity - Severity of message to be written
public final void debug(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Severity.DEBUG.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.
public final void debug(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Severity.DEBUG.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.args - arguments for the message.
public final void debugT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.DEBUG.
subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void debugT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.DEBUG.
category - category of this message.subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void path(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Severity.PATH.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.
public final void path(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Severity.PATH.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.args - arguments for the message.
public final void pathT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.PATH.
subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void pathT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.PATH.
category - category of this message.subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void info(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Severity.INFO.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.
public final void info(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Severity.INFO.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.args - arguments for the message.
public final void infoT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.INFO.
subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void infoT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.INFO.
category - category of this message.subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void error(Category category,
java.lang.String subLoc,
MsgObject messageObject)
Severity.ERROR.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.
public final void error(Category category,
java.lang.String subLoc,
MsgObject messageObject,
java.lang.Object[] args)
Severity.ERROR.
category - category of this message.subLoc - sublocation (e.g., a method name).messageObject - message object to log.args - arguments for the message.
public final void errorT(java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.ERROR.
subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void errorT(Category category,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args)
Severity.ERROR.
category - category of this message.subLoc - sublocation (e.g., a method name).msgClear - clear-text message.args - arguments for the message.
public final void traceThrowable(int severity,
java.lang.String subLoc,
MsgObject msgObject,
java.lang.Throwable exc)
severity - message severity.subLoc - sublocation (e.g., method name).msgObject - message object.exc - exception to log.
public final void traceThrowable(int severity,
java.lang.String subLoc,
MsgObject msgObject,
java.lang.Object[] args,
java.lang.Throwable exc)
severity - message severity.subLoc - sublocation (e.g., method name).msgObject - message object.args - arguments for the message.exc - exception to log.
public final void traceThrowableT(int severity,
java.lang.String subLoc,
java.lang.String msgClear,
java.lang.Object[] args,
java.lang.Throwable exc)
severity - message severity.subLoc - sublocation (e.g., method name).msgClear - clear-text message.args - arguments for the message.exc - exception to log.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||