|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILogger
Interface for all logging objects. A logging object provides mechanism for logging errors and messages that are of interest to someone who is trying to monitor the system.
Level| Method Summary | |
|---|---|
Level |
getLevel()
Gets the current verbosity level of this ILogger object. |
String |
getLocationName()
Get the name of the location used by SAP logging and tracing. |
String |
getPattern()
Gets the formatting pattern for output log messages. |
void |
info(Object originator,
String message)
Logs an INFO message. |
void |
info(Object originator,
Throwable throwable,
String message)
Logs an INFO message. |
void |
info(String message)
Logs an INFO message. |
void |
info(Throwable throwable,
String message)
Logs an INFO message. |
void |
initialize(Hashtable parameters,
ILoggerContext loggerContext)
The initialize method is called by the framework after the creation of the logger. |
boolean |
isActive()
This method returns a boolean indicating whether or not this logger is currently active. |
void |
log(Object originator,
String message,
Level level)
Prints log message. |
void |
log(Object originator,
Throwable throwable,
String message,
Level level)
Prints log message and stack trace. |
void |
log(String message,
Level level)
Prints a log message, with a given verbosity level. |
void |
log(Throwable throwable,
String message,
Level level)
Prints log message and stack trace. |
void |
setActive(boolean isActive)
Decides whether or not this logger is currently active. |
void |
setLevel(Level level)
Set the verbosity level for this logger. |
void |
setLocationName(String locationName)
The name of the location used by SAP logging and tracing. |
void |
setPattern(String pattern)
Defines a custom formatting pattern. |
void |
severe(Object originator,
String message)
Logs a SEVERE message. |
void |
severe(Object originator,
Throwable throwable,
String message)
Logs a SEVERE message. |
void |
severe(String message)
Logs a SEVERE message. |
void |
severe(Throwable throwable,
String message)
Logs a SEVERE message. |
void |
warning(Object originator,
String message)
Logs a warning message. |
void |
warning(Object originator,
Throwable throwable,
String message)
Logs a warning message. |
void |
warning(String message)
Logs a warning message. |
void |
warning(Throwable throwable,
String message)
Logs a warning message. |
| Method Detail |
|---|
Level getLevel()
void setLevel(Level level)
level - One of the verbosity level codes.
void initialize(Hashtable parameters,
ILoggerContext loggerContext)
parameters - A set of optional parameters associated to a
logger.loggerContext - Holds global information of a logger, like its
name.boolean isActive()
void setActive(boolean isActive)
isActive - String getPattern()
void setPattern(String pattern)
i the message identification
p the time stamp in milliseconds since January 1, 1970 00:00:00 GMT
d the time stamp in readable form
c the log controller the message was issued through
l the location of origin
t the thread that emitted the message
g the group indentation
s the message severity
m the formatted message text
To print a single %, insert a %%. With group indentation, width is interpreted as the
indentation for each level with a standard value of 1, and alignment is ignored.
As an example, the standard pattern "%24d %-40l [%t] %s: %m" lets the trace formatter print
the date and time of the message in a 24-character column aligned to the left, followed by
the right-aligned location truncated from the left to 40 characters, the thread name in
brackets, and finally the severity name and the formatted message text separated with a colon.
In order to be compliant with the SAP Logging API, this pattern respects the same format definition
pattern - Formatting patternvoid setLocationName(String locationName)
String getLocationName()
void log(String message,
Level level)
message - The message to log.level - What type of message is this? (WARNING/INFO/...)Level
void log(Throwable throwable,
String message,
Level level)
throwable - The exception that was thrown.message - The message to log.level - Verbosity level required for that message.Level
void log(Object originator,
String message,
Level level)
originator - The object which send the message.message - The message to log.level - Verbosity level required for that message.Level
void log(Object originator,
Throwable throwable,
String message,
Level level)
originator - The object which send the message.throwable - The exception that was thrown.message - The message to log.level - Verbosity level required for that message.void warning(String message)
message - The message to log.
void warning(Throwable throwable,
String message)
throwable - The exception that was thrown.message - The message to log.
void warning(Object originator,
String message)
originator - The object which send the message.message - The message to log.
void warning(Object originator,
Throwable throwable,
String message)
originator - The object which send the message.throwable - The exception that was thrown.message - The message to log.void info(String message)
message - The message to log.
void info(Throwable throwable,
String message)
throwable - The exception that was thrown.message - The message to log.
void info(Object originator,
String message)
originator - The object which send the message.message - The message to log.
void info(Object originator,
Throwable throwable,
String message)
originator - The object which send the message.throwable - The exception that was thrown.message - The message to log.void severe(String message)
message - The message to log.
void severe(Throwable throwable,
String message)
throwable - The exception that was thrown.message - The message to log.
void severe(Object originator,
String message)
originator - The object which send the message.message - The message to log.
void severe(Object originator,
Throwable throwable,
String message)
originator - The object which send the message.throwable - The exception that was thrown.message - The message to log.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||