|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.sap.tc.loggingStandard.LogManager
This class is similar to java.util.logging.LogManager.
It contains mainly the factory methods that retrieves the unique instance of itself and creates Logger instance, plus methods that will affect the message output: severity level setting. Other configuration methods are not included.
| Method Summary | |
Level |
getLevel(java.lang.String name)
Get the log level for a given logger name. |
Logger |
getLogger(java.lang.String name)
Method to find a named logger. |
java.util.Enumeration |
getLoggerNames()
Get an enumeration of known logger names. |
static LogManager |
getLogManager()
Return the unique, global LogManager. |
void |
setLevel(java.lang.String name,
Level level)
Set a log level for a given set of loggers. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static LogManager getLogManager()
public Logger getLogger(java.lang.String name)
name - name of the loggerpublic java.util.Enumeration getLoggerNames()
Note: Loggers may be added dynamically as new classes are loaded. This method only reports on the loggers that are currently registered.
public Level getLevel(java.lang.String name)
name - The logger name
public void setLevel(java.lang.String name,
Level level)
throws java.lang.SecurityException
A setLevel() from Manager will FORCE the update of severity on the specified logger and its children.
The empty string "" can be used to identify the root.
name - The logger name to update.level - the new log level, e.g. Level.SEVERE or Level.FINERjava.lang.SecurityException - if a security manager exists and if
the caller does not have LoggingPermission("control").
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||