This is class is responsible for the configuration. It gets the default values
from PSLogConfig.properties.
Any independent (web)app, must call new PortalLogManager().init(rootLoggerName);
in the init of the (web)app.
By default, rootlogger passed to init is configured with the default values from
PSLogConfig.properties.
getLevel(String loggerName) Returns the log level for the logger from the log config file.
If the level is not found, returns the default level.
Parameters: loggerName - the name of the logger.
Returns the log level for the logger from the log config file.
If the level is not found, returns the default level.
Parameters: loggerName - the name of the logger. the log level for the logger from the log config file.
Returns the log filename associated with the loggername.
Parameters: loggerName - the name of the logger. Parameters: logConfigFileName - the configuration file for the logger the name of the logfile associated with the logger. throws: FileNotFoundException - if the log configuration file is not found. throws: IOException - if an I/O error occurs.
Returns the log filename associated with the loggername.
Here the log configuration filename is obtained from the system property.
Parameters: loggerName - the name of the logger. throws: FileNotFoundException - if the log configuration file is not found. throws: IOException - if an I/O error occurs.
Sets up initial configuration for the logger.
Parameters: rootLoggerName -
init
public void init(String rootLoggerName, String fullPathConfigFile)(Code)
Sets up the initial configuration for the logger based on the
fullPathConfigFile
Parameters: rootLoggerName - the name of the rootLogger Parameters: fullPathConfigFile - the config filename along with the full path
reloadConfiguration
public void reloadConfiguration(String fileName)(Code)
Reads the configuration file and loads the content
and configure the loggers associated with the filename.
Parameters: fileName -
If the attribute serverlogs is set to true, returns true, else
returns false.
If true, the messages are logged to the webcontainer logs.
true if messages are logged to the webcontainer logs.