| java.lang.Object com.sun.portal.fabric.util.LogConfigUtil
LogConfigUtil | public class LogConfigUtil (Code) | | This class provides methods to copy Log Config files from the templates
directory to the appropriate directory and do the tag swapping in the
config files.
|
Field Summary | |
final public static String | fs |
createPortalLogConfigFile | public static void createPortalLogConfigFile(String psBaseDir, String psDataDir, String portalID)(Code) | | Creates the log config file for portal
Copies the log config file from the templates directory(psBaseDir/template)
to the config directory of Portal ID(psDataDir/portals/portalID/config).
The destination file is PSLogConfig.properties
It also replaces the tag %LOG_DIR% with the the log
directory(psDataDir/portals/portalID/logs).
Parameters: psBaseDir - Portal Server product installation directory path Parameters: psDataDir - Portal Server software data directory path Parameters: portalID - the Portal ID |
createSearchLogConfigFile | public static void createSearchLogConfigFile(String psBaseDir, String searchDataDir, String searchServerID)(Code) | | Creates the log config file for search.
Copies the log config file from the templates directory(psBaseDir/template)
to the config directory of Portal ID(searchDataDir/searchservers/searchServerID/config).
The destination file is SearchLogConfig.properties
It also replaces the tag %LOG_DIR% with the the log
directory(searchDataDir/searchservers/searchServerID/logs).
Parameters: psBaseDir - Portal Server product installation directory path Parameters: searchDataDir - Search Server software data directory path Parameters: searchServerID - the Search server ID |
getAdminLogConfigFile | public static File getAdminLogConfigFile(String psBaseDir, String logDestDir, String loggerName, boolean excludeAudit) throws IOException(Code) | | Returns the log config file.
Copies the log config file from the templates directory(psBaseDir/template)
to a temp file and returns it.
The token %ROOT_LOGGER% will be replaced by loggerName
The token %LOG_DIR% will be replaced by logDestDir
Parameters: psBaseDir - Portal Server product installation directory path Parameters: logDestDir - destination directory path for the logs Parameters: loggerName - the logger name that will used for token replacement |
getDefaultLogLevel | public static String getDefaultLogLevel()(Code) | | Returns the default loglevel present in the log config file.
|
getLogConfigFileTemplate | public static File getLogConfigFileTemplate(String psBaseDir) throws IOException(Code) | | Returns the log config file template
Copies the log config file from the templates directory(psBaseDir/template)
to a temp file and returns it.
The token %ROOT_LOGGER% will be replaced by debug.com.sun.portal
Parameters: psBaseDir - Portal Server product installation directory path |
|
|