@InterfaceAudience.Public @InterfaceStability.Stable public interface Log4jConfigLoaderMBean extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Object |
getContent()
Gets the log4j content.
|
int |
getInterval()
Gets the interval of the logFile loader that is pre-configured.
|
String |
getLevel()
Gets the current root log level configured.
|
String |
getLogFileName()
Gets the full qualified log file name.
|
long |
lastLoaded()
Gets the timeStamp of the logFile when it is Last loaded.
|
void |
reload()
The Default LogFile will be loaded for every pre-configured interval, but
this request Reloads the logFile forcefully.
|
void |
setContent(Object logFileConfig)
Sets the content.
|
void |
setInterval(int interval)
Sets the interval of the logFile loader, replaces the value that is
pre-configured for this instance.
|
void |
setLevel(String level)
It is an admin's helper method to set the log level on demand thru JMX,
It can be done by changing the root log level entry in log properties
too.
Sets the Root Log level, that is passed as an String. |
String |
setLogFileName(String logFileName)
Sets the log file name.
|
long lastLoaded()
void reload()
String getLogFileName()
String setLogFileName(String logFileName)
logFileName - the log file nameint getInterval()
void setInterval(int interval)
interval - the new intervalString getLevel()
setLevel(String). method.void setLevel(String level)
OFF has the highest possible
rank and is intended to turn off logging.
FATAL level designates very severe error
events that will presumably lead the application to abort.ERROR level designates error events that
might still allow the application to continue running.WARN level designates potentially harmful
situations.INFO level designates informational messages
that highlight the progress of the application at coarse-grained level.
DEBUG Level designates fine-grained
informational events that are most useful to debug an application.TRACE Level designates finer-grained
informational events than the DEBUG level.ALL has the lowest possible rank and is
intended to turn on all logging.
level - the new levelObject getContent()
void setContent(Object logFileConfig)
logFileConfig - the new contentCopyright © 2016 utils4j. All Rights Reserved.