public final class IfsLogManager extends Object
Has a singleton instance which is used by LogManager at various places during the JUL logging system initialization or re-initialization.
Modifier and Type | Method and Description |
---|---|
void |
addLogger(IfsLogger logger)
Deprecated.
9.3.6.0 use same method on LogManager
|
void |
configure(AttributeValueTable config)
Configure logging based on configuration sent by LogManager.
|
Level |
getEffectiveLevel(IfsLogger logger)
Deprecated.
9.3.6.0 use same method on LogManager
|
IfsLogger |
getLogger(String loggerName)
Deprecated.
9.3.6.0 use same method on LogManager
|
static IfsLogManager |
getLogManager()
Get the singleton instance of this class.
|
String |
getRootLoggerName()
Deprecated.
9.3.6.0 use same method on LogManager
|
void |
initialize(LogConfiguration logConfig,
boolean overwrite)
Initialize logging based on a LogConfiguration object.
|
boolean |
isInitialized()
Gets whether logging has been initialized completely.
|
void |
setLogLevel(String loggerName,
Level level)
Deprecated.
9.3.6.0 use same method on LogManager
|
public static IfsLogManager getLogManager()
public void configure(AttributeValueTable config) throws IfsException
This is the new standard entry point for JUL logging system initialization, called from LogManager.
config
- The logging configuration tableIfsException
- if the operation failspublic void initialize(LogConfiguration logConfig, boolean overwrite)
This is the legacy entry point for quick JUL logging system initialization, called from various old tools such the Fingerprint tool, the old Upgrade tool, and some tests. It accomplishes the same thing that a proper call to LogManager.configure() does.
logConfig
- a LogConfiguration that specifies logging options.overwrite
- whether to replace the existing configurationpublic boolean isInitialized()
@Deprecated public String getRootLoggerName()
@Deprecated public void addLogger(IfsLogger logger)
logger
- The IfsLogger to add.@Deprecated public IfsLogger getLogger(String loggerName)
loggerName
- String containing the name of the logger.@Deprecated public void setLogLevel(String loggerName, Level level)
The specified loggerName can be the name of a specific class or a package name.
loggerName
- The logger namelevel
- the effective log level for this logger name@Deprecated public Level getEffectiveLevel(IfsLogger logger)
If not cached, delegate request to the IfsLogManager, which will choose the closest explicitly set log level, using the root logger's level as a last resort.
logger
- The IfsLogger to checkCopyright © 2025. All rights reserved.