public class LogManager extends LogManager
LogManager
to add
functionalities, such as adding our logger listening to DS changes, etc.Modifier and Type | Field and Description |
---|---|
static String |
FORMATTER
The formatter which depends on the log settings
|
static String |
HANDLER
The handler which will be added to each logger object
|
static boolean |
isLocal
Is the Log Service running locally or remotely
|
static boolean |
isMonitoringInit |
protected Level |
loggingLevel |
LOGGING_MXBEAN_NAME
Constructor and Description |
---|
LogManager() |
Modifier and Type | Method and Description |
---|---|
boolean |
addLogger(Logger logger)
Adds a logger to the Log Manager.
|
String[] |
getAllFields()
Return the array of all LogRecord fields available for selection.
|
protected String |
getBackend() |
boolean |
getDidFirstReadConfig() |
boolean |
getLoggingStatusIsActive() |
Set |
getSelectedFieldSet()
Return the LogRecord fields selected to be included.
|
protected boolean |
isDBLogging() |
boolean |
isSecure()
Return whether secure logging is specified.
|
void |
logStopLogs() |
void |
readConfiguration()
This method overrides the
readConfiguration method in
JDK LogManager class. |
void |
updateMonitConfigForLogService()
This method is called from two places, from readConfiguration() and from
Logger.getLoggers().
|
addPropertyChangeListener, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, removePropertyChangeListener, reset
public static boolean isLocal
public static String HANDLER
public static String FORMATTER
public static boolean isMonitoringInit
protected Level loggingLevel
public boolean addLogger(Logger logger)
addLogger
in class LogManager
logger
- Logger object to be added to the Log Manager.public final boolean isSecure()
securityStatus
public final String[] getAllFields()
allFields
public final Set getSelectedFieldSet()
selectedFieldSet
public final void readConfiguration() throws IOException, SecurityException
readConfiguration
method in
JDK LogManager
class.
The base class method resets the loggers in memory. This method
must add handlers to the loggers in memory according to the
new configuration.readConfiguration
in class LogManager
IOException
- if there are IO problems reading the configuration.SecurityException
- if a security manager exists and if the caller
does not have LoggingPermission("control")
.public void updateMonitConfigForLogService()
public boolean getLoggingStatusIsActive()
protected String getBackend()
protected boolean isDBLogging()
public boolean getDidFirstReadConfig()
public void logStopLogs()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.