|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sun.identity.log.Logger
Sun ONE Identity Server extension to the jdk1.4 Logger This extension gives some functionality required by Sun ONE Identity Server secure logger. For JDK1.4 Logger please refer to http://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/Logger.html
Field Summary | |
static com.sun.identity.log.util.ReaderWriterLock |
rwLock
|
Method Summary | |
void |
flush()
Writes all the buffered log records. |
java.lang.String |
getCurrentFile()
This method will return the current file to which the logger's handler is writing to... |
static java.util.logging.Logger |
getLogger(java.lang.String name)
Find or create a logger for a named subsystem. |
static java.util.logging.Logger |
getLogger(java.lang.String name,
java.lang.String rbName)
Find or create a logger for a named subsystem. |
void |
log(java.util.logging.LogRecord record)
Directs evey log call to log(record, credential) And thus the default authorization check does not allow logging when an application uses this interface. |
void |
log(java.util.logging.LogRecord record,
java.lang.Object cred)
Calls super.log after checking authorization. |
void |
setCurrentFile(java.lang.String fileName)
|
Field Detail |
public static com.sun.identity.log.util.ReaderWriterLock rwLock
Method Detail |
public void log(java.util.logging.LogRecord record)
record
- The LogRecord to be loggedpublic void log(java.util.logging.LogRecord record, java.lang.Object cred)
record
- The LogRecord to be loggedcred
- To prove authorization for log WRITE.
The default authorization hook checks validitity of the ssoToken
which should be passed as the cred.public void flush()
public static java.util.logging.Logger getLogger(java.lang.String name)
If a new logger is created its log level will be configured based on the LogManager and it will be configured NOT to send logging output to its parent loggers Handlers. It will be registered in the LogManager global namespace.
name
- A name for the logger. This should
be a dot-separated name and should
be the file name you want to have for your
logs, such as amSSO.access
or auditpublic static java.util.logging.Logger getLogger(java.lang.String name, java.lang.String rbName)
If a new logger is created its log level will be configured based on the LogManager and it will configured to also send logging output to its parent loggers Handlers. It will be registered in the LogManager global namespace.
If the named Logger already exists and does not yet have a localization resource bundle then the given resource bundle name is used. If the named Logger already exists and has a different resource bundle name then an IllegalArgumentException is thrown.
name
- A name for the logger. This should
be a dot-separated name and should
be the file name you want to have for your
logs, such as amSSO.access
or auditrbName
- A resource bundle to be used for localizing the log messages.public java.lang.String getCurrentFile()
public void setCurrentFile(java.lang.String fileName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |