|
Architecture - Log4j Plugin
Log4j
plugin is an optional FriendlySNMP agent plugin.
It is loaded if the following parameter is present in
configuration:
snmp.plugin.log4j=org.friendlysnmp.plugin.log4j.PluginLog4j
|
The plugin gives a runtime access to Log4j configuration file
log4j.properties
and allows this file viewing and modification.
An operator is able to modify Log4j configuration file using SET
requests from a MIB browser.
This file also could be edited before the application start.
The plugin design makes access to application logging system convenient
and flexible.
A developer could edit Log4j configuration file using text editor like no SNMP
is enabled in the application
or using SNMP access via MIB browser.
The plugin supports
FRIENDLY-LOG4J-MIB discussed below.
log4jPropFile
The read-only scalar gives an absolute path to a log4j.properties file.
log4jPropTable
The read-only table displays a full current content of the log4j.properties file.
log4jLoggerTable
This read-write table allows the log4j.properties file
content modification.
Only loggers are allowed to be modified. Appenders modification is not provided.
The table displays list of loggers and has the following columns:
log4jLoggerIndex
- Row index.
log4jLoggerName
- Logger name.
The Log4j ROOT is displayed as a logger but it cannot be renamed.
log4jLoggerLevel
- Logger level.
log4jLoggerRowStatus
- The row status. This column allows adding and removing Log4j loggers.
The Log4j ROOT is displayed as a logger but it cannot be deleted.
Examples tables:
log4jPropTable
log4jLoggerTable
|
|
|