public class ARTLogger
extends java.lang.Object
myArtLogger.logInfo(1)
(to issue an informational level journal entry),
call myArtLogger.logError(1)
(to issue an error level journal entry),
or use any of the other log*
methods, depending on the level of the journal
entry required.
To issue message 2 with an inserted parameter, an adapter writer could call the following:
myArtLogger.logInfo(2,"inserted string")
.Modifier and Type | Field and Description |
---|---|
static int |
CRITICAL
Code used to specify the severity level when logging a message.
|
static int |
DEBUG
Code used to specify the severity level when logging a message.
|
static int |
ERROR
Code used to specify the severity level when logging a message.
|
static int |
INFO
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE1
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE10
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE2
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE3
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE4
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE5
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE6
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE7
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE8
Code used to specify the severity level when logging a message.
|
static int |
VERBOSE9
Code used to specify the severity level when logging a message.
|
static int |
WARNING
Code used to specify the severity level when logging a message.
|
Constructor and Description |
---|
ARTLogger(int facility,
java.lang.String facilityDesc,
java.lang.String bundleName)
Constructor used by adapter writers to instantiate an ARTLogger
object.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the ARTLogger.
|
boolean |
isLogEnabled(int severity)
Determines whether a Journal listener exists for the specified severity level.
|
void |
log(int severity,
int minor,
java.lang.String[] args,
java.lang.String defaultText)
Generates a journal log entry with the given severity level, minor code,
insertion arguments, and some default text if the minor code is not found
in the ResourceBundle.
|
void |
logCritical(int minor)
Generates a Critical-level journal log entry with the given minor code.
|
void |
logCritical(int minor,
java.lang.String arg)
Generates a Critical-level journal log entry with the given minor code
and insertion argument.
|
void |
logCritical(int minor,
java.lang.String[] args)
Generates a Critical-level journal log entry with the given minor code
and insertion arguments.
|
void |
logCritical(int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates a Critical-level journal log entry with the given minor code, insertion arguments
and some default text in case the minor code is not found in the ResourceBundle.
|
void |
logCritical(int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates a Critical-level journal log entry with the given minor code,
insertion argument and some default text incase the minor code is not
found in the ResourceBundle
|
void |
logDebug(int minor)
Generates a Debug-level journal log entry with the given minor code.
|
void |
logDebug(int minor,
java.lang.String arg)
Generates a Debug-level journal log entry with the given minor code and
insertion argument.
|
void |
logDebug(int minor,
java.lang.String[] args)
Generates a Debug-level journal log entry with the given minor code and
insertion arguments.
|
void |
logDebug(int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates a Debug-level journal log entry with the given minor code,
insertion arguments and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logDebug(int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates a Debug-level journal log entry with the given minor code,
insertion argument and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logDebugPlus(int plus,
int minor)
Generates a Debug-level journal log entry with the given level and minor
code.
|
void |
logDebugPlus(int plus,
int minor,
java.lang.String arg)
Generates a Debug-level journal log entry with the given level, minor
code and insertion argument.
|
void |
logDebugPlus(int plus,
int minor,
java.lang.String[] args)
Generates a Debug-level journal log entry with the given level, minor
code and insertion arguments.
|
void |
logDebugPlus(int plus,
int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generate Debug-level journal log entry with the given level, minor code,
insertion arguments and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logDebugPlus(int plus,
int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates a Debug-level journal log entry with the given level, minor
code, insertion argument and some default text in case the minor code is
not found in the ResourceBundle.
|
void |
logError(int minor)
Generates an Error-level journal log entry with the given minor code.
|
void |
logError(int minor,
java.lang.String arg)
Generates an Error-level journal log entry with the given minor code and
insertion argument.
|
void |
logError(int minor,
java.lang.String[] args)
Generates an Error-level journal log entry with the given minor code and
insertion arguments.
|
void |
logError(int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates an Error-level journal log entry with the given minor code,
insertion arguments and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logError(int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates an Error-level journal log entry with the given minor code,
insertion argument and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logInfo(int minor)
Generates an informational-level journal log entry with the given minor code.
|
void |
logInfo(int minor,
java.lang.String arg)
Generates an informational-level journal log entry with the given minor
code and insertion argument.
|
void |
logInfo(int minor,
java.lang.String[] args)
Generates an informational-level journal log entry with the given minor
code and insertion arguments.
|
void |
logInfo(int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates an informational-level journal log entry with the given minor
code, insertion arguments and some default text in case the minor code is
not found in the ResourceBundle.
|
void |
logInfo(int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates an informational-level journal log entry with the given minor
code, insertion argument and some default text in case the minor code is
not found in the ResourceBundle.
|
void |
logWarning(int minor)
Generates a Warning-level journal log entry with the given minor code.
|
void |
logWarning(int minor,
java.lang.String arg)
Generates a Warning-level journal log entry with the given minor code and
insertion argument.
|
void |
logWarning(int minor,
java.lang.String[] args)
Generates a Warning-level journal log entry with the given minor code and
insertion arguments
|
void |
logWarning(int minor,
java.lang.String[] args,
java.lang.String defaultMessage)
Generates a Warning-level journal log entry with the given minor code,
insertion arguments and some default text in case the minor code is not
found in the ResourceBundle.
|
void |
logWarning(int minor,
java.lang.String arg,
java.lang.String defaultMessage)
Generates a Warning-level journal log entry with the given minor code,
insertion argument and some default text in case the minor code is not
found in the ResourceBundle.
|
public static final int CRITICAL
public static final int DEBUG
public static final int ERROR
public static final int INFO
public static final int VERBOSE1
public static final int VERBOSE10
public static final int VERBOSE2
public static final int VERBOSE3
public static final int VERBOSE4
public static final int VERBOSE5
public static final int VERBOSE6
public static final int VERBOSE7
public static final int VERBOSE8
public static final int VERBOSE9
public static final int WARNING
public ARTLogger(int facility, java.lang.String facilityDesc, java.lang.String bundleName)
facility
- An integer facility code that the adapter will use to perform journal logging.
The facility code must be unique across all adapters installed on the Integration Server.facilityDesc
- A text description of the facility code.bundleName
- The name of the ResourceBundle containing the Journal entry text.public void close()
public boolean isLogEnabled(int severity)
severity
- an int representing the level to be checked.public void log(int severity, int minor, java.lang.String[] args, java.lang.String defaultText)
severity
- An int representing the requested journal log level.CRITICAL
,
ERROR
,
WARNING
.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultText
- A String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logCritical(int minor)
minor
- An int representing the minor code for this message.public void logCritical(int minor, java.lang.String arg)
minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the journal entry.public void logCritical(int minor, java.lang.String[] args)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public void logCritical(int minor, java.lang.String[] args, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- A String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logCritical(int minor, java.lang.String arg, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logDebug(int minor)
minor
- An int representing the minor code for this message.public void logDebug(int minor, java.lang.String arg)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public void logDebug(int minor, java.lang.String[] args)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public void logDebug(int minor, java.lang.String[] args, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logDebug(int minor, java.lang.String arg, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logDebugPlus(int plus, int minor)
plus
- An int representing the verbosity level to set over normal debug for this message.minor
- An int representing the minor code for this message.public void logDebugPlus(int plus, int minor, java.lang.String arg)
plus
- An int representing the verbosity level to set over normal debug for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public void logDebugPlus(int plus, int minor, java.lang.String[] args)
plus
- An int representing the verbosity level to set over normal debug for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public void logDebugPlus(int plus, int minor, java.lang.String[] args, java.lang.String defaultMessage)
plus
- An int representing the verbosity level to set over normal debug for this message.minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logDebugPlus(int plus, int minor, java.lang.String arg, java.lang.String defaultMessage)
plus
- An int representing the verbosity level to set over normal debug for this message.minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logError(int minor)
minor
- An int representing the minor code for this message.public void logError(int minor, java.lang.String arg)
minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the
journal entry.public void logError(int minor, java.lang.String[] args)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters
for the journal entry.public void logError(int minor, java.lang.String[] args, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logError(int minor, java.lang.String arg, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.arg
- A String that will be used as insertion parameters for the
journal entry.defaultMessage
- String to be used as the default message if the
requested minor code is not found in the ResourceBundle.public void logInfo(int minor)
minor
- An int representing the minor code for this message.public void logInfo(int minor, java.lang.String arg)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.public void logInfo(int minor, java.lang.String[] args)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.public void logInfo(int minor, java.lang.String[] args, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logInfo(int minor, java.lang.String arg, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the journal entry.defaultMessage
- String to be used as the default message if the requested minor code is not found in the ResourceBundle.public void logWarning(int minor)
minor
- An int representing the minor code for this message.public void logWarning(int minor, java.lang.String arg)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the
journal entry.public void logWarning(int minor, java.lang.String[] args)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters
for the journal entry.public void logWarning(int minor, java.lang.String[] args, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.args
- An array of Strings that will be used as insertion parameters
for the journal entry.defaultMessage
- String to be used as the default message if the
requested minor code is not found in the ResourceBundle.public void logWarning(int minor, java.lang.String arg, java.lang.String defaultMessage)
minor
- An int representing the minor code for this message.arg
- A String that will be used as an insertion parameter for the
journal entry.defaultMessage
- String to be used as the default message if the
requested minor code is not found in the bundle
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.