|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.log.LoggerConfig
public class LoggerConfig
The LoggerConfig class has been provided for dynamic services to specify
Logger attributes (Level,
Handler, etc...) and have the attributes established
without depending on machine resident logger.properties
configuration attributes to be set.
| Nested Class Summary | |
|---|---|
static class |
LoggerConfig.FormalArgument
Provide a way to pass parameter lists around. |
static class |
LoggerConfig.LogHandlerConfig
LogerHandlerConfig provides attributes needed to create a Handler |
| Constructor Summary | |
|---|---|
LoggerConfig(String loggerName,
Level level)
Create a LoggerConfig, send logging output to its parent's handlers, with no resource bundle |
|
LoggerConfig(String loggerName,
Level level,
boolean useParentHandlers,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
Create a LoggerConfig with no resource bundle |
|
LoggerConfig(String loggerName,
Level level,
boolean useParentHandlers,
String resourceBundleName,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
Create a LoggerConfig |
|
LoggerConfig(String loggerName,
Level level,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
Create a LoggerConfig, send logging output to its parent's handlers, with no resource bundle |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Override equals |
Logger |
getLogger()
Get the Logger, configured with attributes |
Level |
getLoggerLevel()
|
String |
getLoggerName()
|
int |
hashCode()
Override hashCode |
static boolean |
isNewLogger(LoggerConfig lConf,
LoggerConfig[] loggerConfigs)
Determine if the current Logger is a new Logger |
static boolean |
levelChanged(LoggerConfig lConf,
LoggerConfig[] loggerConfigs)
Determine if the LoggerConfig provides a Level change |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LoggerConfig(String loggerName,
Level level)
loggerName - The Logger namelevel - Set the log level specifying which message levels will be
logged by the logger
public LoggerConfig(String loggerName,
Level level,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
loggerName - The Logger namelevel - Set the log level specifying which message levels will be
logged by the loggerlogHandlerConfigs - An Array of LogHandlerConfig instances
public LoggerConfig(String loggerName,
Level level,
boolean useParentHandlers,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
loggerName - The Logger namelevel - Set the log level specifying which message levels will be
logged by the loggeruseParentHandlers - Specify whether or not this logger should send
its output to it's parent Logger. This means that any LogRecords will
also be written to the parent's Handlers, and potentially to its parent,
recursively up the namespacelogHandlerConfigs - An Array of LogHandlerConfig instances
public LoggerConfig(String loggerName,
Level level,
boolean useParentHandlers,
String resourceBundleName,
LoggerConfig.LogHandlerConfig... logHandlerConfigs)
loggerName - The Logger namelevel - Set the log level specifying which message levels will be
logged by the loggeruseParentHandlers - Specify whether or not this logger should send
its output to it's parent Logger. If true, then LogRecords will also be
written to the parent's Handlers, and potentially to its parent,
recursively up the namespaceresourceBundleName - Name of ResourceBundle to be used for
localizing messages for the loggerlogHandlerConfigs - An Array of LogHandlerConfig instances| Method Detail |
|---|
public Logger getLogger()
public String getLoggerName()
public Level getLoggerLevel()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
public static boolean isNewLogger(LoggerConfig lConf,
LoggerConfig[] loggerConfigs)
lConf - The LoggerConfig to examineloggerConfigs - The current LoggerConfig
public static boolean levelChanged(LoggerConfig lConf,
LoggerConfig[] loggerConfigs)
lConf - The LoggerConfig to examineloggerConfigs - The current LoggerConfig
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||