public class LogManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOGGING_FRAMEWORK_JUL
Constant used to indicate the logging framework should
be java.util.logging (JUL).
|
static String |
LOGGING_FRAMEWORK_SLF4J
Constant used to indicate the logging framework should
use the SLF4J APIs.
|
static String |
TEXT_FORMAT
Deprecated.
9.3.6.0 use same constant on LogConfiguration
|
static String |
XML_FORMAT
Deprecated.
9.3.6.0 use same constant on LogConfiguration
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLogger(IfsLogger logger)
Add a logger.
|
void |
applyLogLevelOverride(String logEntry)
Apply a log level overrides.
|
void |
applyLogLevelOverrides(String[] logEntries)
Apply a set of log level overrides.
|
void |
clearAllLogLevelOverrides()
Clear all log level overrides.
|
void |
configure(AttributeValueTable config)
Configure this LogManager.
|
AttributeValueTable |
getConfiguration()
Gets the configuration for this LogManager.
|
Level |
getEffectiveLevel(IfsLogger logger)
Deprecated.
9.3.6.0 call directly on IfsLogger
|
static LogManager |
getInstance()
Get the singleton instance of LogManager.
|
IfsLogger |
getLogger(String loggerName)
Get the IfsLogger by name.
|
String |
getRootLoggerName()
Gets the root logger name, established during configuration.
|
boolean |
isInitialized()
Returns indication as to whether logging has been initialized.
|
boolean |
isJulFrameworkEnabled()
Returns indication as to whether if the java.util.logging (JUL)
logging framework is enabled.
|
boolean |
isSlf4jFrameworkEnabled()
Returns indication as to whether if the SLF4J logging facade
framework is enabled.
|
void |
setLogLevel(String loggerName,
Level level)
Sets a log level.
|
@Deprecated public static final String TEXT_FORMAT
@Deprecated public static final String XML_FORMAT
public static final String LOGGING_FRAMEWORK_JUL
public static final String LOGGING_FRAMEWORK_SLF4J
public static LogManager getInstance()
public boolean isInitialized()
public boolean isJulFrameworkEnabled()
public boolean isSlf4jFrameworkEnabled()
public AttributeValueTable getConfiguration() throws IfsException
This will include an entry for the complete set of log-level overrides in effect.
IfsException - if the operation failspublic String getRootLoggerName()
public void configure(AttributeValueTable config) throws IfsException
config - the table of logging configuration parametersIfsException - if the operation failspublic void clearAllLogLevelOverrides()
public void applyLogLevelOverrides(String[] logEntries)
logEntries - the log override entriespublic void applyLogLevelOverride(String logEntry)
logEntry - the log override entrypublic 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)
Now just delegates to IfsLogger, which can figure it out by checking isLoggable() calls.
logger - The IfsLogger to checkpublic void addLogger(IfsLogger logger)
logger - The IfsLogger to add.Copyright © 2025. All rights reserved.