public class ConfigLog extends Object
Constructor and Description |
---|
ConfigLog() |
Modifier and Type | Method and Description |
---|---|
static void |
init(LoaderOptions options)
This method is used to initialize the ConfigLog object with the command line
options specified for the loader.
|
static void |
log(Object source,
int nFlag,
String objErrorInfo)
This method is used to log a message
|
static void |
log(Object source,
int nFlag,
Throwable objErrorInfo)
This method is used to log a message
|
static void |
log(String sMessage)
This method is used to log a message
|
static void |
logAndExit(String sMessage,
int nExitCode)
This method is used to log a message and exit
|
public static void init(LoaderOptions options)
options
- The options used for invoking the loaderpublic static void logAndExit(String sMessage, int nExitCode)
sMessage
- The message loggednExitCode
- exit codepublic static void log(Object source, int nFlag, String objErrorInfo)
source
- The source of the messagenFlag
- exit codeobjErrorInfo
- the string describing the error informationpublic static void log(Object source, int nFlag, Throwable objErrorInfo)
source
- The source of the messagenFlag
- exit codeobjErrorInfo
- the exception that needs to be loggedpublic static void log(String sMessage)
sMessage
- The message loggedCopyright © 2003, 2023, Oracle and/or its affiliates.