Package com.portal.common
Class ConfigLog
java.lang.Object
com.portal.common.ConfigLog
This class provides the log mechanisms specific to the
various Loader utilities. This provides methods which
would log messages based on the "-d"(for debug) and "-v"(for verbose)
flags set in the command line when invoking the loader utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
init
(LoaderOptions options) This method is used to initialize the ConfigLog object with the command line options specified for the loader.static void
This method is used to log a messagestatic void
This method is used to log a messagestatic void
This method is used to log a messagestatic void
logAndExit
(String sMessage, int nExitCode) This method is used to log a message and exit
-
Constructor Details
-
ConfigLog
public ConfigLog()
-
-
Method Details
-
init
This method is used to initialize the ConfigLog object with the command line options specified for the loader. Only the debug and verbose flags are looked up- Parameters:
options
- The options used for invoking the loader
-
logAndExit
This method is used to log a message and exit- Parameters:
sMessage
- The message loggednExitCode
- exit code
-
log
This method is used to log a message- Parameters:
source
- The source of the messagenFlag
- exit codeobjErrorInfo
- the string describing the error information
-
log
This method is used to log a message- Parameters:
source
- The source of the messagenFlag
- exit codeobjErrorInfo
- the exception that needs to be logged
-
log
This method is used to log a message- Parameters:
sMessage
- The message logged
-