org.ourgrid.common.config
Class LogConfiguration
java.lang.Object
org.ourgrid.common.config.LogConfiguration
public class LogConfiguration
- extends java.lang.Object
This class configures Log4j to store log messages.
Method Summary |
static void |
configure(java.lang.String propFilePath,
java.lang.String defaultLogPath)
It loads log4j properties file. |
static void |
configure(java.lang.String propFilePath,
java.lang.String defaultLogPath,
java.lang.String defaultXMLLogPath)
It loads log4j properties file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogConfiguration
public LogConfiguration()
configure
public static void configure(java.lang.String propFilePath,
java.lang.String defaultLogPath)
- It loads log4j properties file.
- Parameters:
propFilePath
- The path for log4j properties file to be loaded.defaultLogPath
- If the filePath property in the log4j properties
file is empty, this parameter defines a default file path to write
log files.
configure
public static void configure(java.lang.String propFilePath,
java.lang.String defaultLogPath,
java.lang.String defaultXMLLogPath)
- It loads log4j properties file. Note that you must use this method only
if the Xml Appender is defined in the respective properties file.
- Parameters:
propFilePath
- The path for log4j properties file to be loaded.defaultLogPath
- If the filePath property in the log4j properties
file is empty, this parameter defines a default file path to write
log files.defaultXMLLogPath
- If the XmlFilePath property in the log4j
properties file is empty, this parameter defines a default XML
file path to write log files.