Class Logger
JDK1.4 Logger please refer to
http://java.sun.com/j2se/1.4.1/docs/api/java/util/logging/Logger.html
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.sun.identity.common.ReaderWriterLockDeprecated, for removal: This API element is subject to removal in a future version.Lock to prevent parallel writing and reading at the same time.static ThreadLocalDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLogger(String name, String resourceBundleName, com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService) Deprecated, for removal: This API element is subject to removal in a future version.Protected method to construct a logger for a named subsystem. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Deprecated, for removal: This API element is subject to removal in a future version.Writes all the buffered log records.Deprecated, for removal: This API element is subject to removal in a future version.Returns the current file to which the logger's handler is writing.static LoggerDeprecated, for removal: This API element is subject to removal in a future version.Find or create a logger for a named subsystem.static LoggerDeprecated, for removal: This API element is subject to removal in a future version.Find or create a logger for a named subsystem.voidlog(com.sun.identity.log.ILogRecord record) Deprecated, for removal: This API element is subject to removal in a future version.Log entitlement log record.voidDeprecated, for removal: This API element is subject to removal in a future version.Directs every log call tolog(LogRecord, Object)And thus the default authorization check does not allow logging when an application uses this interface.voidDeprecated, for removal: This API element is subject to removal in a future version.Calls super.log after checking authorization.voidsetCurrentFile(String fileName) Deprecated, for removal: This API element is subject to removal in a future version.Set the current file to which the logger's handler is writing.Methods inherited from class java.util.logging.Logger
addHandler, config, config, entering, entering, entering, exiting, exiting, fine, fine, finer, finer, finest, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getGlobal, getHandlers, getLevel, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, info, isLoggable, log, log, log, log, log, log, logp, logp, logp, logp, logp, logp, logrb, logrb, logrb, logrb, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setResourceBundle, setUseParentHandlers, severe, severe, throwing, warning, warning
-
Field Details
-
token
Deprecated, for removal: This API element is subject to removal in a future version. -
rwLock
public static com.sun.identity.common.ReaderWriterLock rwLockDeprecated, for removal: This API element is subject to removal in a future version.Lock to prevent parallel writing and reading at the same time.
-
-
Constructor Details
-
Logger
protected Logger(String name, String resourceBundleName, com.sun.identity.monitoring.MonitoringServices monitoringServices, com.sun.identity.monitoring.MonitoringStatusService monitoringStatusService) Deprecated, for removal: This API element is subject to removal in a future version.Protected method to construct a logger for a named subsystem.The logger will be initially configured with a null Level and with useParentHandlers true.
- Parameters:
name- A name for the logger. This should be a dot-separated name and should normally be based on the package name or class name of the subsystem, such as java.net or javax.swing. It may be null for anonymous Loggers.resourceBundleName- Name of the ResourceBundle to be used for localizing messages for this logger. May be null if none of the messages require localization.monitoringServices- The monitoring services.monitoringStatusService- The monitoring status service.- Throws:
MissingResourceException- if the ResourceBundleName is non-null and no corresponding resource can be found.
-
-
Method Details
-
log
Deprecated, for removal: This API element is subject to removal in a future version.Directs every log call tolog(LogRecord, Object)And thus the default authorization check does not allow logging when an application uses this interface. -
log
public void log(com.sun.identity.log.ILogRecord record) Deprecated, for removal: This API element is subject to removal in a future version.Log entitlement log record.- Parameters:
record- Log record.
-
log
Deprecated, for removal: This API element is subject to removal in a future version.Calls super.log after checking authorization. Data is not logged at all if this check fails.- Parameters:
record- TheLogRecordto be logged.cred- To prove authorization for log WRITE. The default authorization hook checks validity of the single sign on token which should be passed as thecred.
-
flush
public void flush()Deprecated, for removal: This API element is subject to removal in a future version.Writes all the buffered log records. -
getLogger
Deprecated, for removal: This API element is subject to removal in a future version.Find or create a logger for a named subsystem. If a logger has already been created with the given name it is returned. Otherwise a new logger is created.If a new logger is created its log level will be configured based on the
LogManagerand it will be configured NOT to send logging output to its parent loggers Handlers. It will be registered in theLogManagerglobal namespace.- Parameters:
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 asamSSO.access, or audit.- Returns:
- a suitable
Logger.
-
getLogger
Deprecated, for removal: This API element is subject to removal in a future version.Find or create a logger for a named subsystem. If a logger has already been created with the given name it is returned. Otherwise a new logger is created.If a new logger is created, its log level will be configured based on the
LogManagerand it will configured to also send logging output to its parent logger's Handlers. It will be registered in theLogManagerglobal 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
IllegalArgumentExceptionis thrown.- Parameters:
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 asamSSO.accessor audit.rbName- A resource bundle to be used for localizing the log messages.- Returns:
- logger for a named subsystem.
-
getCurrentFile
Deprecated, for removal: This API element is subject to removal in a future version.Returns the current file to which the logger's handler is writing. This is useful only in case of file..- Returns:
- the current file to which the logger's handler is writing.
-
setCurrentFile
Deprecated, for removal: This API element is subject to removal in a future version.Set the current file to which the logger's handler is writing.- Parameters:
fileName- name of file.
-